스타일 열 속성
예시
텍스트를 각각 최소 100픽셀의 세 열로 나눕니다.
document.getElementById("myDIV").style.columns = "100px 3";
정의 및 사용
columns 속성은 columnWidth 및 columnCount 설정을 위한 약식 속성입니다.
브라우저 지원
Property | |||||
---|---|---|---|---|---|
columns | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
통사론
열 속성을 반환합니다.
object.style.columns
열 속성을 설정합니다.
object.style.columns = "auto|column-width column-count|initial|inherit"
속성 값
Value | Description |
---|---|
auto | Default value. Sets both the column width to "auto" and the column-count to "auto" |
columnWidth | The width of the columns |
columnCount | The number of columns |
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 참조: 열 속성
❮ 스타일 개체