คุณสมบัติCSS รายการสไตล์
ตัวอย่าง
ระบุคุณสมบัติรายการทั้งหมดในหนึ่งประกาศ:
ul
{
list-style: square inside url("sqpurple.gif");
}
ความหมายและการใช้งาน
คุณสมบัติlist-style
เป็นชวเลขสำหรับคุณสมบัติต่อไปนี้:
หากไม่มีค่าใดค่าหนึ่งหายไป ค่าเริ่มต้นของคุณสมบัตินั้นจะถูกนำมาใช้
ค่าเริ่มต้น: | แผ่นดิสก์นอก none |
---|---|
รับการถ่ายทอด: | ใช่ |
เคลื่อนไหวได้: | ไม่. อ่านเกี่ยวกับแอนิเมชั่น |
รุ่น: | CSS1 |
ไวยากรณ์ JavaScript: | วัตถุ .style.listStyle="ทศนิยมภายใน" |
รองรับเบราว์เซอร์
ตัวเลขในตารางระบุเบราว์เซอร์รุ่นแรกที่สนับสนุนคุณสมบัติอย่างสมบูรณ์
Property | |||||
---|---|---|---|---|---|
list-style | 1.0 | 4.0 | 1.0 | 1.0 | 7.0 |
ไวยากรณ์ CSS
list-style: list-style-type list-style-position list-style-image|initial|inherit;
มูลค่าทรัพย์สิน
Value | Description |
---|---|
list-style-type | Specifies the type of list-item marker. Default value is "disc" |
list-style-position | Specifies where to place the list-item marker. Default value is "outside" |
list-style-image | Specifies the type of list-item marker. Default value is "none" |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
หน้าที่เกี่ยวข้อง
กวดวิชา CSS: รายการ CSS
การอ้างอิง HTML DOM: คุณสมบัติ listStyle