英[?b?di]? ?美[?bɑ:di]??
n.身體;屍體;團體;物體
vt.賦予形體
第三人稱單數(shù): bodies 複數(shù): bodies 現(xiàn)在分詞: bodying 過去式: bodied 過去分詞: bodied
html tbody標籤 語法
作用:組合 HTML 表格的主體內(nèi)容。
說明:tbody 元素應(yīng)該與?thead?和?tfoot?元素結(jié)合。如果您使用 thead、tfoot 以及 tbody 元素,您就必須使用全部的元素。它們的出現(xiàn)次序是:thead、tfoot、tbody,這樣瀏覽器就可以在收到所有資料前呈現(xiàn)頁腳了。您必須在 table 元素內(nèi)部使用這些標籤。
註解:在預(yù)設(shè)情況下這些元素不會影響到表格的佈局。不過,您可以使用 CSS 使這些元素改變表格的外觀。 <thead> 內(nèi)部必須擁有 <tr> 標籤! <thead>、<tbody> 以及 <tfoot> 很少被使用,這是因為糟糕的瀏覽器支援。
html tbody標籤 範例
<html> <head> <style type="text/css"> thead {color:green} tbody {color:blue;height:50px} tfoot {color:red} </style> </head> <body> <table border="1"> <thead> <tr> <th>Month</th> <th>Savings</th> </tr> </thead> <tbody> <tr> <td>January</td> <td>0</td> </tr> <tr> <td>February</td> <td></td> </tr> </tbody> <tfoot> <tr> <td>Sum</td> <td>0</td> </tr> </tfoot> </table> </body> </html>
執(zhí)行實例 ?
點擊 "執(zhí)行實例" 按鈕查看線上實例