如果你使用css sprites,那么在ie6下并不能发挥sprites的作用,它还是会每次再重新
加载这个图片,解决方法为为ie6添加下面这条js:
<!--[if IE 6]>
<script type="text/javascript">
document.execCommand("BackgroundImageCache",false,true);
</script>
<![endif]-->
如果你使用css sprites,那么在ie6下并不能发挥sprites的作用,它还是会每次再重新
加载这个图片,解决方法为为ie6添加下面这条js:
<!--[if IE 6]>
<script type="text/javascript">
document.execCommand("BackgroundImageCache",false,true);
</script>
<![endif]-->
转载于:https://www.cnblogs.com/xupeiyu/p/3608309.html