【问题标题】:ie 6 footer floating to the top issue即 6 页脚浮动到顶部问题
【发布时间】:2009-10-06 22:05:19
【问题描述】:

我正在开发的客户端网站在 FF、Safari、IE7、IE8 中看起来不错。但是 IE6 将页脚浮动到页面顶部!!!!??

网站在这里: http://pssnet.com/~devone/myles/index.php 样式表:http://pssnet.com/~devone/myles/css/style.css

包装器和页脚css如下。页脚位于包装器 div 内。感谢您的反馈。

.wrapper {
    position: relative;
    min-height: 730px;
    height: auto !important;
    width: 770px;   
    margin-left: 14%;
    margin-right: 10%;
    font-size: 10pt;
    font-family: Arial, Helvetica, sans-serif;  
    color: #336666;
    border-style: solid;
    border-width: 0px;      
}

#footer {
    clear: both;
    position: absolute;
    bottom: 0px;
    width: 100%;
    height: 100px;          
    background: #CEF6CE;
}

【问题讨论】:

    标签: css cross-browser


    【解决方案1】:

    IE6 不喜欢包装器中的最小高度。尝试在最小高度下添加:

    height:auto !important;
    height:730px;
    

    【讨论】:

    猜你喜欢
    • 2015-09-19
    • 2013-10-23
    • 2013-07-05
    • 2019-05-15
    • 2015-03-03
    • 2010-09-13
    • 2014-05-25
    • 2011-05-19
    • 1970-01-01
    相关资源
    最近更新 更多