HTMLTableElement: border プロパティ
Deprecated
Avoid using this feature in new projects. Some table styling attributes have no effect. They are superseded by CSS. This feature may be a candidate for removal from web standards or browsers.>
HTMLTableElement.border プロパティは、 <table> 要素の境界の幅を表します。
値
文字列で、境界の幅をピクセル単位で表します。
例
js
// 表の境界を 2 ピクセルに設定
const t = document.getElementById("TableA");
t.border = "2";
仕様書
| 仕様書 |
|---|
| HTML> # dom-table-border> |