【问题标题】:full width absolute positioned footer in ie6ie6中的全宽绝对定位页脚
【发布时间】:2012-11-14 01:04:48
【问题描述】:

我使用粘性页脚,绝对位置,但在 IE6 中它不会拉伸到 100%。问题是我需要在其父容器上有不同的宽度来伪造列。父级没有指定宽度,但左边距允许左列使用另一种背景颜色。

#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;
}

http://jsfiddle.net/6hvMC/

【问题讨论】:

    标签: html css sticky-footer


    【解决方案1】:

    真的很难相信在更好的浏览器时代你正在为 IE6 尝试一些东西。还有check this page about MSIE6

    对于你的问题,当浏览器是 MSIE6 时,你可以以像素而不是百分比来指定页脚的宽度。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-05-15
      • 2010-10-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-18
      相关资源
      最近更新 更多