解决 IE6 背景缓存

解决 IE6 背景缓存
<!--[if IE 6]><script type="text/javascript">document.execCommand("BackgroundImageCache", false, true);</script><![endif]-->

 缓存预加载设置  

BEUI.preLoadCacheSet = function(){   
//IE6默认不缓存背景图片的解决   
//http://madinsect.blogbus.com/logs/29562266.html   
if ( $.browser.msie ){   
//alert( $.browser.version ); // 6.0   
if ( $.browser.version.trim() == "6.0" ){   
    //trim()在Divtpl.conroller.js定义   
        document.execCommand("BackgroundImageCache", false, true);   
    }   
}

 IE6下默认不缓存背景图片的bug.js

try{document.execCommand('BackgroundImageCache',false,true);}catch(e){}

 hover在IE6下的问题

使用zoom,display,padding等等属性来搞定
原文地址:https://www.cnblogs.com/sntetwt/p/3891892.html