我通常使用这一法典。
div#wrapper{width:900px; margin: 0 auto;}
div#header{float:left; width: 900px;}
div#sidebar{float:left; width: 300px;}
div#content{float:left; width:600px;}
div#footer{float:left; width: 900px; clear:both;}
我有这个标志
<div id="wrapper">
<div id="header"></div>
<div id="sidebar"></div>
<div id="content"></div>
<div id="footer"></div>
</div>
IE6中的布局:整个布局向左边浮动!
是否有这方面的知识?
EDIT: layout is valid; centering works in IE7 and 8 (but breaks in quirks)
EDIT here s how it looks in quirks mode alt text http://www.freeimagehosting.net/image.php?2646ed5285.png