为什么我的第三行代码总是与效果图不一样
来源:3-4 编程练习
慕前端0531089
2019-02-25 21:10:01
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
</head>
<body>
<!-- 在此编写代码 -->
<table align="center" width="100%">
<tr bgcolor="pink" height="80px"><td>页头</td></tr>
<tr height="10px"><td></td></tr>
<tr bgcolor="orange">
<td>
<table align="center">
<tr bgcolor="white">
<td width="240px" >左侧内容</td>
<td height="20px" bgcolor="orange"></td>
<td width="764px">右侧内容</td>
</tr>
</table>
</td>
</tr>
<tr height="10px"><td></td></tr>
<tr bgcolor="black" height="80px"><td></td></tr>
</table>
</body>
</html>
1回答
Steve007
2019-02-26
同学,你好。这是因为两个白框之间的间隙应该是宽20px,而不是高20px。修改如下:

祝学习愉快!
相似问题