Stil sayacı Artış Özelliği
Örnek
CounterIncrement özelliğini değiştirin:
document.getElementById("myH1").style.counterIncrement = "subsection";
Tanım ve Kullanım
counterIncrement özelliği, bir veya daha fazla sayaç değerini artırır.
CounterIncrement özelliği genellikle counterReset özelliği ve content özelliği ile birlikte kullanılır.
Tarayıcı Desteği
Property | |||||
---|---|---|---|---|---|
counterIncrement | Yes | Yes | Yes | Yes | Yes |
Sözdizimi
CounterIncrement özelliğini döndürün:
object.style.counterIncrement
CounterIncrement özelliğini ayarlayın:
object.style.counterIncrement = "none|id|initial|inherit"
Mülk değerleri
Value | Description |
---|---|
none | Default value. No counters will be incremented |
id number | The id defines which counter that should be incremented. The number sets how much the counter will increment on each occurrence of the selector. The default increment is 1. 0 or negative values, are allowed. If the id refers to a counter that has not been initialized by counter-reset, the default initial 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