我正在开发的客户端网站在 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/