Daftar gayaStyleImage Property
Contoh
Tentukan gambar sebagai penanda item daftar dalam daftar:
document.getElementById("myList").style.listStyleImage = "url('sqorange.gif')";
Definisi dan Penggunaan
Properti listStyleImage menyetel atau mengembalikan gambar sebagai penanda item daftar.
Dukungan Peramban
Property | |||||
---|---|---|---|---|---|
listStyleImage | Yes | Yes | Yes | Yes | Yes |
Sintaksis
Kembalikan properti listStyleImage:
object.style.listStyleImage
Setel properti listStyleImage:
object.style.listStyleImage = "none|url|initial|inherit"
Nilai properti
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 |
Detail Teknis
Nilai Bawaan: | tidak ada |
---|---|
Nilai Kembali: | Sebuah String, mewakili jalur lokasi gambar |
Versi CSS | CSS1 |
Lebih Banyak Contoh
Contoh
Kembalikan nilai properti list-style-image:
alert(document.getElementById("myList").style.listStyleImage);
Halaman Terkait
Tutorial CSS: Daftar CSS
Referensi CSS: properti list-style-image
Referensi DOM HTML: properti listStyle
Objek Gaya