From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/css/caption-side/index.html | 140 +++++++++++++++++++++++++++++++ 1 file changed, 140 insertions(+) create mode 100644 files/ja/web/css/caption-side/index.html (limited to 'files/ja/web/css/caption-side/index.html') diff --git a/files/ja/web/css/caption-side/index.html b/files/ja/web/css/caption-side/index.html new file mode 100644 index 0000000000..8628282eb2 --- /dev/null +++ b/files/ja/web/css/caption-side/index.html @@ -0,0 +1,140 @@ +--- +title: caption-side +slug: Web/CSS/caption-side +tags: + - CSS + - CSS Property + - CSS Tables + - Reference +translation_of: Web/CSS/caption-side +--- +
{{CSSRef}}
+ +

caption-side は、表 ({{htmlelement("table")}}) の {{HTMLElement("caption")}} の配置位置を指定する CSS プロパティです。

+ +
{{EmbedInteractiveExample("pages/css/caption-side.html")}}
+ + + +

{{cssinfo}}

+ +

構文

+ +
/* 方向を示す値 */
+caption-side: top;
+caption-side: bottom;
+
+/* 警告: 非標準の値 */
+caption-side: left;
+caption-side: right;
+caption-side: top-outside;
+caption-side: bottom-outside;
+
+/* グローバル値 */
+caption-side: inherit;
+caption-side: initial;
+caption-side: unset;
+
+ +

このプロパティの値は、表の {{cssxref('writing-mode')}} に対して相対的です。

+ +

+ +
+
top
+
キャプションボックスを表の上に配置することを示すキーワードです。
+
bottom
+
キャプションボックスを表の下に配置することを示すキーワードです。
+
left {{non-standard_inline}}
+
キャプションボックスを表の左に配置することを示すキーワードです。
+
{{Note("この値は CSS 2 で提案されましたが、最終的な CSS 2.1 仕様から削除されており、非標準です。")}}
+
right {{non-standard_inline}}
+
キャプションボックスを表の右に配置することを示すキーワードです。
+
{{Note("この値は CSS 2 で提案されましたが、最終的な CSS 2.1 仕様から削除されており、非標準です。")}}
+
top-outside {{non-standard_inline}}
+
キャプションボックスを表の上に配置することを示すキーワードです。ただし、キャプションの幅や水平方向の配置は、表の水平方向のレイアウトに束縛されません。
+ {{Note("CSS 2.1 仕様では、CSS 2 仕様で値 top について異なる動作を説明していたとの注記があります。この動作は将来の仕様書で、この値を使用して再導入する予定です。")}}
+
bottom-outside {{non-standard_inline}}
+
キャプションボックスを表の下に配置することを示すキーワードです。ただし、キャプションの幅や水平方向の配置は、表の水平方向のレイアウトに束縛されません。
+ {{Note("CSS 2.1 仕様では、CSS 2 仕様で値 bottom について異なる動作を説明していたとの注記があります。この動作は将来の仕様書で、この値を使用して再導入する予定です。")}}
+
+ +

形式構文

+ +
{{csssyntax}}
+ +

+ +

HTML

+ +
<table class="top">
+  <caption>Caption ABOVE the table</caption>
+  <tr>
+    <td>Some data</td>
+    <td>Some more data</td>
+  </tr>
+</table>
+
+<br>
+
+<table class="bottom">
+  <caption>Caption BELOW the table</caption>
+  <tr>
+    <td>Some data</td>
+    <td>Some more data</td>
+  </tr>
+</table>
+
+ +

CSS

+ +
.top caption {
+  caption-side: top;
+}
+
+.bottom caption {
+  caption-side: bottom;
+}
+
+table {
+  border: 1px solid red;
+}
+
+td {
+  border: 1px solid blue;
+}
+
+ +

出力

+ +

{{EmbedLiveSample('Examples')}}

+ +

仕様

+ + + + + + + + + + + + + + + + + + + + + +
仕様書策定状況コメント
{{SpecName('CSS Logical Properties', '#caption-side', 'caption-side')}}{{Spec2('CSS Logical Properties')}}top および bottom は、writing-mode の値に対して相対的であることを定義
{{SpecName('CSS2.1', 'tables.html#caption-position', 'caption-side')}}{{Spec2('CSS2.1')}}最初の定義
+ +

ブラウザ実装状況

+ + + +

{{Compat("css.properties.caption-side")}}

-- cgit v1.2.3-54-g00ecf