<tr> 標(biāo)簽定義 HTML 表格中的行。
tr 元素包含一個(gè)或多個(gè) th 或 td 元素。
一個(gè)簡(jiǎn)單的 HTML 表格,包含兩行兩列:
<table border="1"><tr>
<th>Month</th> <th>Savings</th></tr>
<tr>
<td>January</td> <td>$100</td></tr>
</table>
在 HTML 4.01 中,tr 元素的 "bgcolor" 是不被贊成使用的。
在 XHTML 1.0 Strict DTD 中,tr 元素的 "bgcolor" 是不被支持的。
DTD 指示此屬性允許在哪種 DTD 中使用。S=Strict, T=Transitional, F=Frameset.
屬性 | 值 | 描述 | DTD |
---|---|---|---|
align |
|
定義表格行的內(nèi)容對(duì)齊方式。 | STF |
bgcolor |
|
不贊成使用。請(qǐng)使用樣式取而代之。 規(guī)定表格行的背景顏色。 |
TF |
char | character | 規(guī)定根據(jù)哪個(gè)字符來(lái)進(jìn)行文本對(duì)齊。 | STF |
charoff | number | 規(guī)定第一個(gè)對(duì)齊字符的偏移量。 | STF |
valign |
|
規(guī)定表格行中內(nèi)容的垂直對(duì)齊方式。 | STF |
id, class, title, style, dir, lang, xml:lang
如需完整的描述,請(qǐng)?jiān)L問標(biāo)準(zhǔn)屬性。
onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
如需完整的描述,請(qǐng)?jiān)L問事件屬性。
如對(duì)本文有疑問,請(qǐng)?zhí)峤坏浇涣髡搲?,廣大熱心網(wǎng)友會(huì)為你解答??! 點(diǎn)擊進(jìn)入論壇