【发布时间】:2011-10-06 11:27:12
【问题描述】:
在另一篇文章中,我读到如果我需要为除标题行之外的每一行添加边框,我应该使用 THEAD 和 TBODY。所以我已经将它添加到页面中,但我找不到如何将它应用到 TBODY。我是新手,所以请多多包涵。我可以在整个表格周围放置边框,但需要排除标题行。这是一个表的副本,它在 TABLE 标记中具有边框属性,它可以正常工作。
<table width="300" BORDER=1 CELLPADDING=3 CELLSPACING=1 RULES=ROWS FRAME=BOX>
<thead>
<tr>
<th width="60" align="center" valign="top" scope="col">Type</th>
<th width="200" align="left" valign="top" scope="col">Address</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center" valign="top">Shipping</td>
<td align="left" valign="top">123 Main St</td>
</tr>
</tbody>
</table>
感谢任何帮助。
【问题讨论】:
标签: html