现在的位置: 首页 > 综合 > 正文

今天做了一个复杂的table

2013年04月08日 ⁄ 综合 ⁄ 共 372字 ⁄ 字号 评论关闭

随着学习table的深入,发现table的一个属性:rowspan非常有用,也非常难用,下边是我个人的一点心得:

<table border="1">
<tr>
<td width="103"  rowspan="2">Row 1, cell 1</td>
<td width="103">Row 2, cell 2</td>
<td width="103">Row 3, cell 3</td>
</tr>
<tr>
<td>Row 4, cell 4</td>
<td  rowspan="2">Row 5, cell 5</td>

</tr>
<tr>
<td >Row 6, cell 6</td>
<td >Row 7, cell 7</td>

</tr>
<tr>
<td >Row 6, cell 8</td>
<td >Row 7, cell 9</td>
<td >Row 7, cell 10</td>
</tr>
</table>

实际结果:

  

抱歉!评论已关闭.