HTML DOM TBody Obheheto

TBody object

The TBody object represents the HTML <tbody> element.

Access TBody object

You can use getElementById() to access the <tbody> element:

var x = document.getElementById("myTBody");

Try it yourself

Create TBody object

You can use the document.createElement() method to create a <tbody> element:

var x = document.createElement("TBODY");

Try it yourself

TBody object properties

属性 Description
align

HTML5 中不支持。请改用 style.textAlign

Set or return the horizontal alignment of the content within the tbody element.

ch

HTML5 中不支持。

Set or return the alignment character within the tbody element.

chOff

HTML5 中不支持。

Set or return the horizontal offset of the ch attribute.

vAlign

HTML5 中不支持。请改用 style.verticalAlign

设置或返回 thead 元素中内容的垂直对齐方式。

标准属性和事件

TBody 对象支持标准属性事件

相关页面

HTML 教程:HTML 表格

HTML 参考手册:HTML <tbody> 标签