스타일 counterReset 속성
예시
카운터 재설정 속성 변경:
document.body.style.counterReset = "section";
정의 및 사용
counterReset 속성은 하나 이상의 카운터를 만들거나 재설정합니다.
counterReset 속성은 일반적으로 counterIncrement 속성 및 content 속성과 함께 사용됩니다.
브라우저 지원
Property | |||||
---|---|---|---|---|---|
counterReset | Yes | Yes | Yes | Yes | Yes |
통사론
counterReset 속성을 반환합니다.
object.style.counterReset
counterReset 속성을 설정합니다.
object.style.counterReset = "none|name number|initial|inherit"
속성 값
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 |
기술적 세부 사항
기본값: | 없음 |
---|---|
반환 값: | 요소의 카운터 증가 속성을 나타내는 문자열 |
CSS 버전 | CSS2 |
❮ 스타일 개체