老师帮忙检查一下作业

来源:3-4 编程练习

汤姆克鲁琛

2020-03-22 11:24:04

<!DOCTYPE html>
<html>
<head>
    <title></title>
	<meta charset="utf-8">
</head>
    <body>
    	<!-- 在此编写代码 -->
    	<table align="center">
    	    <tr bgcolor="pink" width="100%" height="80px"><td>页头</td></tr>
    	    <tr height="10px"><td></td></tr>
    	    <tr bgcolor="orange" width="100%"><td>
    	        <table align="center">
    	            <tr>
    	                <td bgcolor="white" width="240px">左侧内容</td>
    	                <td width="20px"></td>
    	                <td bgcolor="white" width="764px">右侧内容</td>
    	            </tr>
    	        </table>
    	    </td></tr>
    	    <tr height="10px"><td></td></tr>
    	    <tr bgcolor="black" height="80px" width="100%"><td></td></tr>
    	</table>
    </body>
</html>


写回答

1回答

好帮手慕言

2020-03-22

同学你好,为了效果更美观,建议:给table的宽度设置为100%。代码参考:
http://img.mukewang.com/climg/5e76e42c09aca25106440113.jpg

祝学习愉快~

0

0 学习 · 40143 问题

查看课程