Stijl counterReset eigenschap
Voorbeeld
Verander de counter-reset eigenschap:
document.body.style.counterReset = "section";
Definitie en gebruik
De eigenschap counterReset maakt of reset een of meer tellers.
De eigenschap counterReset wordt meestal samen met de eigenschap counterIncrement en de eigenschap content gebruikt.
Browserondersteuning
Property | |||||
---|---|---|---|---|---|
counterReset | Yes | Yes | Yes | Yes | Yes |
Syntaxis
Retourneer de eigenschap counterReset:
object.style.counterReset
Stel de eigenschap counterReset in:
object.style.counterReset = "none|name number|initial|inherit"
Eigendomswaarden
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 |
Technische details
Standaardwaarde: | geen |
---|---|
Winstwaarde: | Een tekenreeks, die de eigenschap counter-increment van een element vertegenwoordigt |
CSS-versie | CSS2 |
❮ Stijlobject