<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
thead、tbody都是成对出现的标签,即<thead>和</thead>、<tbody>和</tbody>。它们都应用到表格,用于整体规划表格的行列属性。应用这两个标签的优点是,我们只要对thead、tbody标签的属性进行修改,就能对表格的整行单元格的属性进行修改,从而剩去了逐一修改单元格属性的麻烦。
thead标签的属性有:align bgcolor class dir id lang style title valign等。
具体用法如下:
<table cols=3>
<thead>
<tr>
<th>time<th>event<th>location
</tr>
</thead>
<tbody>
<tr>
<td>111<td>222<td>333
</tr>
<tr>
<td>444<td>555<td>666
</tr>
</tbody>
</table>
thead、tbody标签的用法
最新推荐文章于 2025-07-11 17:02:33 发布