Stil sayacıSıfırla Özellik
Örnek
Sayaç sıfırlama özelliğini değiştirin:
document.body.style.counterReset = "section";
Tanım ve Kullanım
CounterReset özelliği, bir veya daha fazla sayacı oluşturur veya sıfırlar.
CounterReset özelliği genellikle counterIncrement özelliği ve content özelliği ile birlikte kullanılır.
Tarayıcı Desteği
Property | |||||
---|---|---|---|---|---|
counterReset | Yes | Yes | Yes | Yes | Yes |
Sözdizimi
CounterReset özelliğini döndürün:
object.style.counterReset
CounterReset özelliğini ayarlayın:
object.style.counterReset = "none|name number|initial|inherit"
Mülk değerleri
Value | Description |
---|---|
none | Default value. No counters will be reset |
name | The name defines which counter that should be reset |
number | The id defines which counter that should be reset. The number sets the value the counter is set to on each occurrence of the selector. The default reset value is 0 |
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: | Bir öğenin karşı artış özelliğini temsil eden bir Dize |
CSS Sürümü | CSS2 |
❮ Stil Nesnesi