스타일 columnCount 속성
예시
div 요소의 텍스트를 세 개의 열로 나눕니다.
document.getElementById("myDIV").style.columnCount = 3;
정의 및 사용
columnCount 속성은 요소가 분할되어야 하는 열의 수를 지정합니다.
브라우저 지원
Property | |||||
---|---|---|---|---|---|
columnCount | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
통사론
columnCount 속성을 반환합니다.
object.style.columnCount
columnCount 속성을 설정합니다.
object.style.columnCount = "number|auto|initial|inherit"
속성 값
Value | Description |
---|---|
number | The optimal number of columns into which the content of the element will be flowed |
auto | Default value. The number of columns will be determined by other properties, like e.g. "column-width" |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
기술적 세부 사항
기본값: | 자동 |
---|---|
반환 값: | 요소의 열 개수 속성을 나타내는 문자열 |
CSS 버전 | CSS3 |
관련 페이지
CSS3 튜토리얼: CSS3 다중 열
CSS 참조: 열 개수 속성
❮ 스타일 개체