스타일 tableLayout 속성
예시
고정 테이블 레이아웃 설정:
document.getElementById("myTable").style.tableLayout = "fixed";
정의 및 사용
tableLayout 속성은 테이블 셀, 행 및 열을 배치하는 방법을 설정하거나 반환합니다.
브라우저 지원
Property | |||||
---|---|---|---|---|---|
tableLayout | Yes | Yes | Yes | Yes | Yes |
통사론
tableLayout 속성을 반환합니다.
object.style.tableLayout
tableLayout 속성을 설정합니다.
object.style.tableLayout = "auto|fixed|initial|inherit"
속성 값
Value | Description |
---|---|
auto | Column width is set by the widest unbreakable content. This is default.
|
fixed | Column width is set by the width of table and columns (not the content of the cells)
|
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
기술적 세부 사항
기본값: | 자동 |
---|---|
반환 값: | 테이블에 사용되는 테이블 레이아웃 알고리즘을 나타내는 문자열 |
CSS 버전 | CSS2 |
더 많은 예
예시
테이블 레이아웃 반환:
alert(document.getElementById("myTable").style.tableLayout);
관련 페이지
CSS 튜토리얼: CSS 테이블
CSS 참조: 테이블 레이아웃 속성
❮ 스타일 개체