jquery IE6悬停问题,不断加载背景图片 [英] Jquery IE6 hover problems, keeps loading background image
本文介绍了jquery IE6悬停问题,不断加载背景图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
看看这个网页: http://pearl.tinderfields.com/
在IE6中,每当用户将鼠标悬停在菜单项上时,菜单的背景图片都会加载,显然这是一个非常垃圾的菜单。
有什么特别的理由说明,为什么IE6会在每次悬停时重新加载图像?
解决方案
< script type =text / javascript>
尝试{
document.execCommand('BackgroundImageCache',false,true);
} catch(e){}
< / script>
或尝试CSS方式
html {
filter:expression(document.execCommand(BackgroundImageCache,false,true));
}
希望这可以帮到你!
Take a look at this page: http://pearl.tinderfields.com/
In IE6 the menu's background image loads every time the user hovers over a menu item, which is obviously making a very rubbish looking menu.
Is there any special reason as to why IE6 would re-load the image on every hover?
解决方案
Read This:
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>
OR try CSS way
html {
filter: expression(document.execCommand("BackgroundImageCache", false, true));
}
hope this help!
这篇关于jquery IE6悬停问题,不断加载背景图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文