Stil listesiStyleImage Özellik
Örnek
Bir listede liste öğesi işaretçisi olarak bir resim belirtin:
document.getElementById("myList").style.listStyleImage = "url('sqorange.gif')";
Tanım ve Kullanım
listStyleImage özelliği, liste öğesi işaretçisi olarak bir görüntüyü ayarlar veya döndürür.
Tarayıcı Desteği
Property | |||||
---|---|---|---|---|---|
listStyleImage | Yes | Yes | Yes | Yes | Yes |
Sözdizimi
listStyleImage özelliğini döndürün:
object.style.listStyleImage
listStyleImage özelliğini ayarlayın:
object.style.listStyleImage = "none|url|initial|inherit"
Mülk değerleri
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 |
Teknik detaylar
Varsayılan değer: | Yok |
---|---|
Geri dönüş değeri: | Görüntünün konum yolunu temsil eden bir Dize |
CSS Sürümü | CSS1 |
Daha fazla örnek
Örnek
list-style-image özellik değerini döndürün:
alert(document.getElementById("myList").style.listStyleImage);
İlgili Sayfalar
CSS eğitimi: CSS Listesi
CSS referansı: liste stili görüntü özelliği
HTML DOM referansı: listStyle özelliği
❮ Stil Nesnesi