Stijl counterIncrement Eigenschap
Voorbeeld
Wijzig de eigenschap counterIncrement:
document.getElementById("myH1").style.counterIncrement = "subsection";
Definitie en gebruik
De eigenschap counterIncrement verhoogt een of meer tellerwaarden.
De eigenschap counterIncrement wordt meestal samen met de eigenschap counterReset en de eigenschap content gebruikt.
Browserondersteuning
Property | |||||
---|---|---|---|---|---|
counterIncrement | Yes | Yes | Yes | Yes | Yes |
Syntaxis
Retourneer de eigenschap counterIncrement:
object.style.counterIncrement
Stel de eigenschap counterIncrement in:
object.style.counterIncrement = "none|id|initial|inherit"
Eigendomswaarden
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 |
Technische details
Standaardwaarde: | geen |
---|---|
Winstwaarde: | Een tekenreeks, die de eigenschap counter-increment van een element vertegenwoordigt |
CSS-versie | CSS2 |
❮ Stijlobject