HTML 合并单元格

2024-01-05 13:44 小编
  • 如果要将两个或多个列合并为一个列,将使用colspan属性 
  • 如果要合并两行或更多行,则将使用rowspan属性。

<table border = "1">

<tr>

<th>Column 1</th>

<th>Column 2</th>

<th>Column 3</th>

</tr>

<tr>

<td rowspan = "2">Row 1 Cell 1</td>

<td>Row 1 Cell 2</td>

<td>Row 1 Cell 3</td>

</tr>

<tr>

<td>Row 2 Cell 2</td>

<td>Row 2 Cell 3</td>

</tr>

<tr>

<td colspan = "3">Row 3 Cell 1</td>

</tr>

</table>


在线咨询 拨打电话

电话

13363039260

微信二维码

微信二维码