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