HTML DOM TFoot 对象

TFoot 对象

TFoot 对象代表 HTML <tfoot> 元素。

访问 TFoot 对象

您可以使用 getElementById() 访问 <tfoot> 元素:

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

亲自试一试

创建 TFoot 对象

您可以使用 document.createElement() 创建 <tfoot> 元素:

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

亲自试一试

TFoot 对象属性

属性 描述
align HTML5 中不支持。请改用 style.textAlign。设置或返回 <tfoot> 元素中内容的水平对齐方式。
ch HTML5 中不支持。设置或返回 <tfoot> 元素内的对齐字符。
chOff HTML5 中不支持。设置或返回 ch 属性的水平偏移量。
vAlign HTML5 中不支持。请改用 style.verticalAlign。设置或返回 <tfoot> 元素中内容的垂直对齐方式。

标准属性和事件

TFoot 对象支持标准属性事件