<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>? <head>? <meta http-equiv="content-type" content="text/html; charset=utf-8">? <meta name="generator" content="PSPad editor, www.pspad.com">? <title></title>? <style>? #container {? ? width:1000px;? ? background:gray;? ? }? ?#header {? ? height:120px;? ? background:orange;? ? }? ? #main {? ? height:600px;? ? background:green;? ? }? ? #lside {? ? height:600px;? ? width:700px;? ? background:pink;? ? float:left;? ? }? ? #rside {? ? height:600px;? ? width:300px;? ? background:purple;? ? float:right;? ? }? ? #footer {? ? height:120px;? ? background:blue;? ? }? ? </style>? </head>? <body>? ? ? ?<div id = "container">? ? ? ?<div id = "header"></div>? ? ? ?<div id = "main">? ? ? ?<div id = "lside"></div>? ? ? ?<div id = "rside"></div>? ? ? ?</div>? ? ? ?<div id = "footer"></div>? ? ? ?</div>? </body></html>為什么去掉header時最上面沒有灰色填充 container不包括header么
大神能解釋下么
慕粉1471134825
2017-08-14 16:02:28