假设我有表,代码是如何设计表div标签
<table cellspacing="1" class="style1" style="width:40%;" border="1">
<tr>
<td>Row 1 - Col 1</td>
</tr>
<tr>
<td>Row 2 - Col 1</td>
</tr>
<tr>
<td>Row 3 - Col 1</td>
</tr>
<tr>
<td>Row 4 - Col 1</td>
</tr>
<tr>
<td>Row 5 - Col 1</td>
</tr>
</table>
我要生成与DIV相同的输出。请用示例html指导我。 谢谢
就像一个兴趣点......如果你输出表格数据,表没有什么问题。这就是一张桌子的用途。您应该避免使用表格来创建页面布局。 – charliegriefer 2010-12-07 18:15:53