oggetti TR HTML DOM
oggetti TR
oggetto tr rappresenta una riga di tabella HTML.
documento HTML compare in un tag <tr>, si creerà un oggetto TR.
collezione di oggetti tr
W3C: label W3C.
集合 | 描述 | W3C |
---|---|---|
cells | 返回表格行中所有<td>和<th>元素的集合 | Yes |
proprietà degli oggetti TR
属性 | 描述 | W3C |
---|---|---|
align | 已废弃。 设置或返回在行中数据的水平排列。 | D |
bgColor | 已废弃。 设置或返回表格行的的颜色。 | D |
ch | 设置或返回在行中单元格的对齐字符。 | Yes |
chOff | 设置或返回在行中单元格的对齐字符的偏移量。 | Yes |
height | 已废弃。设置或返回表格行的高度。使用 style.height 取代 | D |
rowIndex | 返回该行在表中的位置。 | Yes |
sectionRowIndex | R返回在 tBody 、tHead 或 tFoot 中,行的位置。 | Yes |
vAlign | 设置或返回在行中的数据的垂直排列方式。 | Yes |
metodi di un oggetto TR
方法 | 描述 | W3C |
---|---|---|
deleteCell() | 删除行中的指定的单元格。 | Yes |
insertCell() | 在一行中的指定位置插入一个空的元素。 | Yes |