jQuery的IE6悬停问题,不断加载背景图片
-
20-09-2019 - |
题
看看这个页面: http://pearl.tinderfields.com/
在IE6菜单背景图片加载每个用户将鼠标悬停的菜单项,这显然是制作很垃圾看菜单的时间。
时有什么特别的理由,为什么IE6将重新加载每个悬停的形象呢?
解决方案
<强>阅读本强>
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));
}
希望这有助于!
不隶属于 StackOverflow