0
我有一个容器,其中有一些div:头部,内容,页脚(作为标准应用程序)。CSS - IE没有从最后一个div得到margin-bottom
这是如下结构:
<body>
<div>
<div id="ROOT" >
<div id="ROOT_0" >
Header
</div>
<div id="ROOT_1" >
Content
</div>
<div id="ROOT_2" >
Footer
</div>
</div>
</div>
</body>
实际CSS:
html {height:101%;}
body {background:#999999;}
#ROOT{ background-color:#333333; width:980px; margin-left:auto; margin-right:auto; overflow:auto;}
#ROOT_0{background-color:#FF9933; width:970px; text-align:center; float:left; margin-top:5px; margin-left:5px; margin-right:5px; margin-bottom:5px;}
#ROOT_1{width:980px; text-align:center; float:left; background-image:url(../img/sfondofc.jpg);}
#ROOT_2{background-color:#FF9933; width:970px; padding-top:5px; padding-bottom:5px; text-align:center; float:left; margin-top:5px; margin-bottom:5px; margin-left:5px; margin-right:5px; font-weight:bold; font-size:13px;}
background-color:#FF9933; width:970px; padding-top:5px; padding-bottom:5px; text-align:center; float:left; margin-top:5px; margin-bottom:5px; margin-left:5px; margin-right:5px; font-weight:bold; font-size:13px;
不幸的是,在IE(6)我不能看到边距:5px的;最后,我在哪里有页脚。我需要改变哪个礼节?欢呼声
呃,这只是一个“诀窍”。我的网站有很长的一页,其他时间不长。所以,如果我总是想要在左侧滚动条,我把HTML的101%!所以网站不会移动到左右:) – markzzz 2010-10-15 20:10:10