使用
HTML
屬性 | 值 | 描述 |
---|---|---|
Align | right
left center justify char |
已棄用?? 可視對齊。 |
bgcolor | rgb(x,x,x)
#hexcode colorname |
已棄用?? 指定表格單元格的背景顏色。 |
Char | Character | 已棄用?? 指定要對齊文本的字符。當align = “char”時使用。 |
Charoff | pixels or % | 已棄用?? 指定與char屬性指定的第一個字符對齊的對齊偏移量(以像素或百分比值表示)。當align = “char”時使用。 |
Valign | topmiddlebottombaseline | 已棄用?? 垂直對齊 |
示例
您可以嘗試運行以下代碼來學習如何在HTML表格中添加一行?
<!DOCTYPE html> <html> <head> <title>HTML tr Tag</title> </head> <body> <table border = "1"> <tr> <th>Cricketers</th> <th>Ranking</th> </tr> <tr> <td>Virat Kohli</td> <td>1</td> </tr> <tr> <td>AB de Villiers</td> <td>2</td> </tr> </table> </body> </html>
登錄后復制
以上就是我們如何在HTML中添加一行表格?的詳細內容,更多請關注www.92cms.cn其它相關文章!