css - ie 6 footer float 到最上面的问题

标签 css cross-browser

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

网站在这里: 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;
}

最佳答案

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

height:auto !important;
height:730px;

关于css - ie 6 footer float 到最上面的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1525747/

相关文章:

javascript - jQuery 语法 : -linear-gradient ("color", 白色)以 "color"作为变量

css - IE7 与内部有 4 个 div 的 div 容器的兼容性错误

css - IE 6 下拉选择区域太窄

css - Flexbox 渲染被最新的 Chrome 破坏了

css - 一次使用多个特定于供应商的 CSS 选择器

html - 网页的最佳绝对宽度是多少?

css - 如何测试页面上的文本是否被删除

jquery - 根据另一个定义为溢出隐藏的 div 的高度设置一个 div 的高度

css - 跨浏览器渐变问题

html - 在 Internet Explorer 中将一个元素垂直居中于另一个元素中