我使用的是粘性页脚,绝对位置,但它不会在 IE6 中拉伸(stretch)到 100%。问题是我需要在其父容器上使用不同的宽度来伪造列。父级没有指定宽度,但有 margin-left,因此允许左列使用另一种 bg 颜色。
#footer {
background-color:#ccc;
height:100px;
position:absolute;
bottom:0px;
width:100%;
left:0px;
text-align:center;
}
#wrapper {
background-color:red;
min-height:100%;
height:100%;
margin-left:264px;
}
最佳答案
真的很难相信在更好的浏览器时代你正在为 IE6 尝试一些东西..另外 check this page about MSIE6
对于您的问题,当浏览器为 MSIE6 时,您可以以像素为单位指定页脚的宽度,而不是以百分比为单位。
关于html - ie6 中的全宽绝对定位页脚,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13364513/