Internet Explorer 7 中的页脚显示问题

发布于 2024-11-29 00:42:54 字数 1037 浏览 5 评论 0原文

用语言解释它有点奇怪。我正在处理的网站的页脚在除 IE7 之外的大多数浏览器上看起来都不错。下面的屏幕截图将为您提供想法。

IE8/FF/Chrome

IE7(向右移动半个屏幕)

页脚具有以下 CSS。当我删除 CSS 时,它显示正常。

#footer-holder
{
    clear: both;
    width: 100%;
    position: fixed;
    bottom: 0px;
    *border: none;
    z-index: 10000;
    height: 30px;
    /* For WebKit */
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(255,255,255,0.1)), to(rgba(0,100,255,0.70)));
    /* For Mozilla */
    background: -moz-linear-gradient(top, rgba(255,255,255,0.1), rgba(0,100,255,0.70));
    /* For lt IE8 */
    filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr=#01FFFFFF, EndColorStr=#A50064FF);
    /* For gt IE8 */
    background: -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr=#01FFFFFF, EndColorStr=#A50064FF)";
}

我厌倦了使其与 IE7 兼容。知道可能是什么导致了这个问题吗?

It is bit weird scenario to explain it in words. The footer of site I'm working on looks good on most of the browsers except IE7. Below are the screenshots will give you the idea.

IE8/FF/Chrome

IE7 (moved half screen right)

The footer has following CSS. When I remove the CSS it displays fine.

#footer-holder
{
    clear: both;
    width: 100%;
    position: fixed;
    bottom: 0px;
    *border: none;
    z-index: 10000;
    height: 30px;
    /* For WebKit */
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(255,255,255,0.1)), to(rgba(0,100,255,0.70)));
    /* For Mozilla */
    background: -moz-linear-gradient(top, rgba(255,255,255,0.1), rgba(0,100,255,0.70));
    /* For lt IE8 */
    filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr=#01FFFFFF, EndColorStr=#A50064FF);
    /* For gt IE8 */
    background: -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr=#01FFFFFF, EndColorStr=#A50064FF)";
}

I am tired to making it compatible with IE7. Any idea what might be causing the issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

故事未完 2024-12-06 00:42:54

解决了问题。我不得不提到left: 0px;。现在它在 IE7 上看起来很棒。 :)

Resolved the issue. I had to mention left: 0px;. And now it is looking great on IE7. :)

失眠症患者 2024-12-06 00:42:54

尝试在 html 顶部添加

Try <!DOCTYPE html> at the top of your html..

心奴独伤 2024-12-06 00:42:54

删除 *border: none; 旁边的 *

Remove the * next to *border: none;

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文