このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

HTMLTableElement: frame プロパティ

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 インターフェイスの frame プロパティは、文字列で表の外部の境界のうちどれを描画するかを示します。

以下のいずれかです。

void

どの辺も描画しません。これが既定値です。

"above"

上端の辺

"below"

下端の辺

"hsides"

上下の辺のみ

"vsides"

左右の辺のみ

"lhs"

左側の辺のみ

"rhs"

右側の辺のみ

"box"

4 つすべての辺

"border"

4 つすべての辺

js
// TableA の枠を 'border' に設定
const t = document.getElementById("TableA");
t.frame = "border";
t.border = "2px";

仕様書

仕様書
HTML
# dom-table-frame

ブラウザーの互換性