Jquery IE6 hover problems, keeps loading background image

旧街凉风 提交于 2019-12-29 09:28:07

问题


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?


回答1:


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!



来源:https://stackoverflow.com/questions/2468788/jquery-ie6-hover-problems-keeps-loading-background-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!