CSSキャプション側のプロパティ
例
表のキャプションの配置を指定します。
#example1 {
caption-side: bottom;
}
#example2 {
caption-side: top;
}
定義と使用法
caption-side
プロパティは、テーブルキャプションの配置を指定します。
デフォルト値: | 上 |
---|---|
遺伝性の: | はい |
アニメート可能: | 番号。アニメート可能について読む |
バージョン: | CSS2 |
JavaScript構文: | object .style.captionSide = "bottom" |
ブラウザのサポート
表の数字は、プロパティを完全にサポートする最初のブラウザバージョンを示しています。
Property | |||||
---|---|---|---|---|---|
caption-side | 1.0 | 8.0 | 1.0 | 1.0 | 4.0 |
CSS構文
caption-side: top|bottom|initial|inherit;
プロパティ値
Value | Description | Play it |
---|---|---|
top | Puts the caption above the table. This is default | |
bottom | Puts the 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チュートリアル:CSSテーブル
HTML DOMリファレンス:captionSideプロパティ