รายการ สไตล์สไตล์คุณสมบัติตำแหน่ง
ตัวอย่าง
เยื้องเครื่องหมายรายการ:
document.getElementById("myUL").style.listStylePosition = "inside";
ความหมายและการใช้งาน
คุณสมบัติ listStylePosition ตั้งค่าหรือส่งคืนตำแหน่งของตัวทำเครื่องหมายรายการ
รองรับเบราว์เซอร์
Property | |||||
---|---|---|---|---|---|
listStylePosition | Yes | Yes | Yes | Yes | Yes |
ไวยากรณ์
ส่งคืนคุณสมบัติ listStylePosition:
object.style.listStylePosition
ตั้งค่าคุณสมบัติ listStylePosition:
object.style.listStylePosition = "outside|inside|initial|inherit"
มูลค่าทรัพย์สิน
Value | Description |
---|---|
outside | The list-item marker will be rendered before any text content. This is default |
inside | Indents the list-item marker marker |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
รายละเอียดทางเทคนิค
ค่าเริ่มต้น: | ข้างนอก |
---|---|
คืนมูลค่า: | สตริงที่แทนตำแหน่งของเครื่องหมายรายการรายการ |
เวอร์ชัน CSS | CSS1 |
ตัวอย่างเพิ่มเติม
ตัวอย่าง
กลับตำแหน่งของเครื่องหมายรายการ:
alert(document.getElementById("myList").style.listStylePosition);
หน้าที่เกี่ยวข้อง
กวดวิชา CSS: รายการ CSS
การอ้างอิง CSS: คุณสมบัติรายการสไตล์ตำแหน่ง
การอ้างอิง HTML DOM: คุณสมบัติ listStyle
❮ สไตล์วัตถุ