1

我在我的网站中使用了这个粘性页脚: 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]-->

抱歉,我无法发布地址,我现在没有网络服务器。

4

1 回答 1

1

感谢亚历克,

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

终于找到了导致滚动条无法使用的 CSS 规则。我为身体的背景使用了渐变色:

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

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

于 2011-01-17T09:45:26.097 回答