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/api/htmltableelement/rules/index.html | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 files/ja/web/api/htmltableelement/rules/index.html (limited to 'files/ja/web/api/htmltableelement/rules/index.html') diff --git a/files/ja/web/api/htmltableelement/rules/index.html b/files/ja/web/api/htmltableelement/rules/index.html new file mode 100644 index 0000000000..b979aa3acb --- /dev/null +++ b/files/ja/web/api/htmltableelement/rules/index.html @@ -0,0 +1,56 @@ +--- +title: HTMLTableElement.rules +slug: Web/API/HTMLTableElement/rules +tags: + - DOM + - Gecko + - Gecko DOM Reference +translation_of: Web/API/HTMLTableElement/rules +--- +
+ {{APIRef}}
+
+  
+
+ 概要
+

rules は、テーブル内のボーダーの表示位置の設定 / 取得に用います。

+

構文

+
HTMLTableElement.rules =rules; //設定
+rules = HTMLTableElement.rules; //取得
+

引数

+

指定値及び戻り値は、次の文字列の内の一つとなります。

+
+
+ none
+
+ ボーダーを表示しない
+
+ groups
+
+ グループ間にのみボーダーを表示
+
+ rows
+
+ 行間にボーダーを表示
+
+ cols
+
+ 列間にボーダーを表示
+
+ all
+
+ 全てのセル間にボーダーを表示
+
+

+
// テーブルの全てのボーダーを表示する例
+
+var t = document.getElementById("TableID"); // table 要素への参照を変数に代入
+
+t.rules = "all"; // テーブルの rules プロパティに "all" を設定
+

仕様

+ -- cgit v1.2.3-54-g00ecf