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