解决IE6下的CSS Hover背景图片闪烁问题

解决IE6下的Hover背景图片闪烁问题,关键是图片不缓存

IE6下的背景图片每次使用都会重新发送请求,所以会出现闪烁的情况:

解决方案:

HTML注释 + JS

<!--[if IE 6]>
<script type="text/javascript">
<!-
    document.execCommand("BackgroundImageCache", false, true); 
 -->
</script>

 也还有一种解决方案就是使用expression,不过不推荐使用,所以不不出列出来。

原文地址:https://www.cnblogs.com/kingwell/p/2708336.html