<h1>纵向合并 rowspan的作用纵向跨越的列数</h1>
<table border="1" width="600" height="30" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="3">单元格1</td>
<td>单元格2</td>
</tr>
<tr>
<td>单元格3</td>
</tr>
<tr>
<td>单元格4</td>
</tr>
</table>
<h2>跨列合并colspan的作用横向跨越的列数</h2>
<table border="1" width="600" height="30" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3">单元格2</td>
</tr>
<tr>
<td>单元格2</td>
<td>单元格3</td>
<td>单元格4</td>
</tr>
<tr>
<td>单元格2</td>
<td>单元格3</td>
<td>单元格4</td>
</tr>
</table>
<table border="1" width="600" height="200" cellpadding="0" cellspacing="0">
<tr>
<td colspan="4"></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td rowspan="2"></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td rowspan="3"></td>
<td></td>
</tr>
<tr>
<td colspan="2"></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</table>
视图如下: