代码之家  ›  专栏  ›  技术社区  ›  markzzz

CSS-ie不从最后一个分区获取页边距底部

  •  0
  • markzzz  · 技术社区  · 14 年前

    我有一个容器,其中有一些分隔符:页眉、内容、页脚(作为标准应用程序)。

    这就是结构:

    <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;最后,我看到了页脚。我需要改变什么礼仪?干杯

    1 回复  |  直到 14 年前
        1
  •  0
  •   fro_oo    14 年前

    为什么要将HTML的Height属性设置为101%?