表格单元格合并
单元格合并属性
水平合并:colspan
垂直合并:rowspan
<table border="1"width=500px height="500px">
<tr>
<td>单元1</td>
<td>单元2</td>
<td>单元3</td>
<td>单元4</td>
<td>单元5</td>
</tr>
<tr>
<td>单元6</td>
<td colspan="2">单元78</td>
<td>单元9</td>
<td>单元10</td>
</tr>
<tr>
<td>单元11</td>
<td>单元12</td>
<td>单元13</td>
<td rowspan="2">单元14 19</td>
<td>单元15</td>
</tr>
<tr>
<td>单元16</td>
<td>单元17</td>
<td>单元18</td>
<td>单元20</td>
</tr>
<tr>
<td>单元21</td>
<td>单元22</td>
<td>单元23</td>
<td>单元24</td>
<td>单元25</td>
</tr>
</table>
-
水平合并:保留左边,删除右边
-
垂直合并:保留上边,删除下边