<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
border: 1px solid black;
}
</style>
</head>
<body>
<h1>Colspan 和 rowspan</h1>
<h3>横跨两列的单元格:</h3>
<table>
<tr>
<th>姓名</th>
<th>电邮</th>
<th colspan="2">电话</th>
</tr>
<tr>
<td>Bill Gates</td>
<td>bill.gates@example.com</td>
<td>138-1234-5678</td>
<td>186-2345-6789</td>
</tr>
</table>
<h3>横跨两行的单元格:</h3>
<table>
<tr>
<th>姓名:</th>
<td>Bill Gates</td>
</tr>
<tr>
<th>电邮:</th>
<td>bill.gates@example.com</td>
</tr>
<tr>
<th rowspan="2">电话:</th>
<td>138-1234-5678</td>
</tr>
<tr>
<td>186-2345-6789</td>
</tr>
</table>
</body>
</html>