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/empty-cells/index.html | 121 ++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 files/ja/web/css/empty-cells/index.html (limited to 'files/ja/web/css/empty-cells') diff --git a/files/ja/web/css/empty-cells/index.html b/files/ja/web/css/empty-cells/index.html new file mode 100644 index 0000000000..dc203bac4a --- /dev/null +++ b/files/ja/web/css/empty-cells/index.html @@ -0,0 +1,121 @@ +--- +title: empty-cells +slug: Web/CSS/empty-cells +tags: + - CSS + - CSS プロパティ + - CSS 表 + - リファレンス +translation_of: Web/CSS/empty-cells +--- +
{{CSSRef}}
+ +

CSS の empty-cells プロパティは、目に見える内容を持たない{{htmlelement("table", "表")}}のセルの、周囲の境界と背景を{{glossary("user agent", "ユーザーエージェント")}}がどのように描画するかを指定します。

+ +
{{EmbedInteractiveExample("pages/css/empty-cells.html")}}
+ + + +

このプロパティは、 {{cssxref("border-collapse")}} プロパティが separate の場合のみ効果があります。

+ +

構文

+ +
/* キーワード値 */
+empty-cells: show;
+empty-cells: hide;
+
+/* グローバル値 */
+empty-cells: inherit;
+empty-cells: initial;
+empty-cells: unset;
+
+ +

empty-cells プロパティは、以下のキーワード値のうちの一つで指定します。

+ +

+ +
+
show
+
通常のセルのように、境界や背景を描くことを示すキーワードです。
+
hide
+
境界や背景を描かないことを示すキーワードです。
+
+ +

+ +
{{csssyntax}}
+
+ +

+ +

HTML

+ +
<table class="table_1">
+  <tr>
+    <td>Moe</td>
+    <td>Larry</td>
+  </tr>
+  <tr>
+    <td>Curly</td>
+    <td></td>
+  </tr>
+</table>
+<br>
+<table class="table_2">
+  <tr>
+    <td>Moe</td>
+    <td>Larry</td>
+  </tr>
+  <tr>
+    <td>Curly</td>
+    <td></td>
+  </tr>
+</table>
+
+ +

CSS

+ +
.table_1 {
+  empty-cells: show;
+}
+
+.table_2 {
+  empty-cells: hide;
+}
+
+td,
+th {
+  border: 1px solid gray;
+  padding: 0.5rem;
+}
+ +

結果

+ +

{{ EmbedLiveSample('Examples', '100%', '200') }}

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('CSS2.1', 'tables.html#empty-cells', 'empty-cells')}}{{Spec2('CSS2.1')}} 
+ +

{{cssinfo}}

+ +

ブラウザーの対応

+ + + +

{{Compat("css.properties.empty-cells")}}

-- cgit v1.2.3-54-g00ecf