CSS粘性页脚使IE 8中的滚动条不可滚动

时间:2011-01-16 22:47:48

标签: css internet-explorer internet-explorer-8 sticky-footer

我在我的网站上使用这个粘性页脚: http://www.cssstickyfooter.com/using-sticky-footer-code.html

它完全适用于Firefox,Chrome,IE7,但不适用于IE8。在IE8中,滚动条出现但不起作用,我没有任何其他方式向下移动。我正在使用网络中出现的条件语句:

<!--[if !IE 7]>
    <style type="text/css">
        #wrap {display:table;height:100%}
    </style>
<![endif]-->

很抱歉,但我无法发布地址,我现在没有网上的服务器。

1 个答案:

答案 0 :(得分:1)

感谢Alec,

我决定重新将代码移回基础。但这一次,我认为这可能与我在我网站上的其他CSS有关,宾果游戏!

最后找到了使滚动条无法使用的CSS规则。我使用渐变色作为身体的背景:

body {
   filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#52a0d6',  endColorstr='#024f7c');
}

现在我正在使用图像作为背景,滚动条正在工作,粘性页脚正好在它应该的位置。

相关问题