스타일 captionSide 속성
예시
표 캡션을 표 맨 아래로 이동합니다.
document.getElementById("myCap").style.captionSide = "bottom";
정의 및 사용
captionSide 속성은 테이블 캡션의 위치를 설정하거나 반환합니다.
브라우저 지원
Property | |||||
---|---|---|---|---|---|
captionSide | Yes | 9.0 | Yes | Yes | Yes |
통사론
captionSide 속성을 반환합니다.
object.style.captionSide
캡션사이드 속성을 설정합니다.
object.style.captionSide = "top|bottom|initial|inherit"
속성 값
Value | Description |
---|---|
top | Default. Positions the table caption above the table |
bottom | Positions the table caption below the table |
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("myCap").style.captionSide);
관련 페이지
CSS 튜토리얼: CSS 테이블
CSS 참조: 캡션 측 속성
❮ 스타일 개체