HTML DOMTHeadオブジェクト
THeadオブジェクト
THeadオブジェクトは、HTMLの<thead>要素を表します。
THeadオブジェクトにアクセスする
getElementById()を使用して、<thead>要素にアクセスできます。
例
var x = document.getElementById("myTHead");
THeadオブジェクトを作成する
document.createElement()メソッドを使用して、<thead>要素を作成できます。
例
var x = document.createElement("THEAD");
THeadオブジェクトのプロパティ
Property | Description |
---|---|
align | Not supported in HTML5. Use style.textAlign instead. Sets or returns the horizontal alignment of the content inside the thead element |
ch | Not supported in HTML5. Sets or returns an alignment character inside the thead element |
chOff | Not supported in HTML5. Sets or returns the horizontal offset of the ch property |
vAlign | Not supported in HTML5. Use style.verticalAlign instead. Sets or returns the vertical alignment of the content within a thead element |
標準のプロパティとイベント
THeadオブジェクトは、標準のプロパティとイベントもサポートしています。
関連ページ
HTMLチュートリアル:HTMLテーブル
HTMLリファレンス:HTML <thead>タグ