【问题标题】:Jquery IE6 hover problems, keeps loading background imageJquery IE6悬停问题,不断加载背景图片
【发布时间】:2010-03-18 18:02:37
【问题描述】:

看看这个页面:http://pearl.tinderfields.com/

在 IE6 中,每次用户将鼠标悬停在菜单项上时都会加载菜单的背景图像,这显然是在制作一个看起来很垃圾的菜单。

IE6 每次悬停时都会重新加载图像有什么特殊原因吗?

【问题讨论】:

    标签: jquery hover background-image internet-explorer-6


    【解决方案1】:

    阅读:

    http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=1&postId=1104

    <script type="text/javascript">
    try {
     document.execCommand('BackgroundImageCache', false, true);
    } catch(e) {}
    </script>
    

    或者试试 CSS 方式

    html { 
    filter: expression(document.execCommand("BackgroundImageCache", false, true)); 
    }
    

    希望对您有所帮助!

    【讨论】:

    • 工作完美,你的现代英雄。
    猜你喜欢
    • 1970-01-01
    • 2014-04-05
    • 2011-07-03
    • 2011-02-03
    • 1970-01-01
    • 1970-01-01
    • 2011-07-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多