例子
<table border="1">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td colspan="1">January</td>
</tr>
<tr>
<td colspan="2">February</td>
</tr>
</table>
效果
colspan
属性规定单元格可横跨的列数。
<table border="1">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td colspan="1">January</td>
</tr>
<tr>
<td colspan="2">February</td>
</tr>
</table>
colspan
属性规定单元格可横跨的列数。
转载于:https://my.oschina.net/fxtxz2/blog/1921922