Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

HTMLTableElement.rules

 
概要

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

構文

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

引数

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

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

// テーブルの全てのボーダーを表示する例

var t = document.getElementById("TableID"); // table 要素への参照を変数に代入

t.rules = "all"; // テーブルの rules プロパティに "all" を設定

仕様

ドキュメントのタグと貢献者

タグ: 
 このページの貢献者: fscholz, arunpandianp, ethertank
 最終更新者: arunpandianp,