HTML DOM tr object
tr object
The tr object represents the rows of the HTML table.
A tr object is created when a label appears in the HTML document.
The tr object collection
W3C: W3C label.
gather | describe | W3C |
---|---|---|
cells | 返回表格行中所有<td>和<th>元素的集合 | Yes |
tr object properties
Attributes | describe | W3C |
---|---|---|
align | It has been discarded. Set or return to the horizontal arrangement of data in the row. | D |
bgColor | It has been discarded. Set or return the color of the table. | D |
ch | Set or returns align characters in the cell. | Yes |
chOff | Set or return the offset of align characters in the cell. | Yes |
height | It has been discarded. Set or return to the height of the table.use style.height replace | D |
rowIndex | Returns the location of the row in the table. | Yes |
sectionRowIndex | R Return to TBody, THEAD, or TFOOT, the location of the line. | Yes |
vAlign | Set or returns a vertical arrangement of the data in the row. | Yes |
tr object method
method | describe | W3C | |
---|---|---|---|
deleteCell() | Delete the specified cell in the row. | Yes | |
insertCell() | Insert an empty in the designated location in a row | element. | Yes |
Standard properties and events
The tr object also supports the standard properties and events.