รายการ สไตล์คุณสมบัติ สไตล์ รูปภาพ
ตัวอย่าง
ระบุรูปภาพเป็นตัวทำเครื่องหมายรายการในรายการ:
document.getElementById("myList").style.listStyleImage = "url('sqorange.gif')";
ความหมายและการใช้งาน
คุณสมบัติ listStyleImage ตั้งค่าหรือส่งคืนรูปภาพเป็นเครื่องหมายรายการ
รองรับเบราว์เซอร์
Property | |||||
---|---|---|---|---|---|
listStyleImage | Yes | Yes | Yes | Yes | Yes |
ไวยากรณ์
ส่งคืนคุณสมบัติ listStyleImage:
object.style.listStyleImage
ตั้งค่าคุณสมบัติ listStyleImage:
object.style.listStyleImage = "none|url|initial|inherit"
มูลค่าทรัพย์สิน
Value | Description |
---|---|
none | No image will be displayed. This is default |
url | Specifies the path to the image |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
รายละเอียดทางเทคนิค
ค่าเริ่มต้น: | ไม่มี |
---|---|
คืนมูลค่า: | สตริงที่แสดงถึงเส้นทางตำแหน่งของภาพ |
เวอร์ชัน CSS | CSS1 |
ตัวอย่างเพิ่มเติม
ตัวอย่าง
ส่งกลับค่าคุณสมบัติ list-style-image:
alert(document.getElementById("myList").style.listStyleImage);
หน้าที่เกี่ยวข้อง
กวดวิชา CSS: รายการ CSS
การอ้างอิง CSS: คุณสมบัติรายการสไตล์รูปภาพ
การอ้างอิง HTML DOM: คุณสมบัติ listStyle
❮ สไตล์วัตถุ