CSS liste stili Özellik
Örnek
Tüm liste özelliklerini tek bir bildirimde belirtin:
ul
{
list-style: square inside url("sqpurple.gif");
}
Tanım ve Kullanım
Özellik list-style
, aşağıdaki özellikler için bir kısayoldur:
Değerlerden biri eksikse, o özelliğin varsayılan değeri kullanılacaktır.
Varsayılan değer: | disk dışında hiçbiri |
---|---|
Miras: | Evet |
canlandırılabilir: | Hayır. Canlandırılabilir hakkında bilgi edinin |
Sürüm: | CSS1 |
JavaScript sözdizimi: | nesne .style.listStyle="ondalık içeride" |
Tarayıcı Desteği
Tablodaki sayılar, özelliği tam olarak destekleyen ilk tarayıcı sürümünü belirtir.
Property | |||||
---|---|---|---|---|---|
list-style | 1.0 | 4.0 | 1.0 | 1.0 | 7.0 |
CSS Sözdizimi
list-style: list-style-type list-style-position list-style-image|initial|inherit;
Mülk değerleri
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 |
İlgili Sayfalar
CSS eğitimi: CSS Listesi
HTML DOM referansı: listStyle özelliği