HTML DOM TableRow ɗanin
- ƙasance ɗaƙa <thead>
- ƙasance ɗaɗe <textarea>
TableRow 对象
TableRow 对象代表 HTML
访问 TableRow 对象
您可以使用 getElementById() 访问
var x = document.getElementById("myTr");
提示:您还可以通过搜索表的 rows 集合 来访问
创建 TableRow 对象
您可以使用 document.createElement() 方法创建
var x = document.createElement("TR");
TableRow 对象集合
集合 | 描述 | ||
---|---|---|---|
cells | 返回表格行中所有 | 或 | 元素的集合。 |
TableRow 对象属性
ɗauka | 描述 |
---|---|
align |
HTML5 中不支持。请改用 style.textAlign。 设置或返回表格行内内容的水平对齐方式。 |
bgColor |
HTML5 中不支持。请改用 style.backgroundColor。 设置或返回表格行的背景颜色。 |
ch |
HTML5 中不支持。 设置或返回表格行中单元格的对齐字符。 |
chOff |
HTML5 中不支持。 设置或返回 ch 属性的水平偏移量。 |
height |
HTML5 中不支持。请改用 style.height。 设置或返回表格行的高度。 |
rowIndex | 返回行在表的行集合中的位置。 |
sectionRowIndex | 返回行在 tbody、thead 或 tfoot 的 rows 集合中的位置。 |
vAlign |
HTML5 中不支持。请改用 style.verticalAlign。 设置或返回表格行内内容的垂直对齐方式。 |
TableRow 对象方法
方法 | 描述 |
---|---|
deleteCell() | 从当前表格行中删除单元格。 |
insertCell() | 在当前表格行中插入单元格。 |
- ƙasance ɗaƙa <thead>
- ƙasance ɗaɗe <textarea>