HTML表格的嵌套
发布网友
发布时间:2022-04-25 22:10
我来回答
共2个回答
热心网友
时间:2022-04-19 09:30
<!DOCTYPE html>
<html>
<head>
<title>HTML表格的嵌套</title>
<meta charset="UTF-8" />
</head>
<body>
<table border="1" style="width: 300px;">
<tr>
<td>1</td>
<td colspan="2">2</td>
<td>3</td>
</tr>
<tr>
<td colspan="2">1</td>
<td colspan="2">2</td>
</tr>
<tr>
<td colspan="2">1</td>
<td colspan="2">2</td>
</tr>
</table>
</body>
</html>
合并单元格就可以实现效果了
热心网友
时间:2022-04-19 10:48
弄一个 给你哈
<table border="1">
<tr>
<td>
<table border="1">
<tr>
<td>1</td><td>2</td><td>3</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="1" width="100%">
<tr>
<td>1</td><td>2</td>
</tr>
<tr>
<td>1</td><td>2</td>
</tr>
<tr>
<td>1</td><td>2</td>
</tr>
</table>
</td>
</tr>
</table>
效果: