因为IE6默认下不缓存背景图片,所以当鼠标在有CSS背景的按钮或是图片上移动时,图片会闪烁甚至鼠标会出现忙的状态,而在FireFox下没有这个问题
最笨的方法:
<style type="text/css"> html { filter: expression(document.execCommand("BackgroundImageCache", false, true)); } </style> |
正确方法:
<!--[if lte IE6]> <script type="text/javascript"> document.execCommand("BackgroundImageCache", false, true); </script> <![endif]--> |
您可能也喜欢: |
IE6下,javascript:void(0);不是标准,建议用javascript:; |
IE7、IE6下,a标签无href属性,伪类hover失效 |
解决IE6下无法动态切换图片、样式的bug |
在IE6下显示透明PNG图片 |
无觅 |