IE6在背景图片缓存上有一个bug:它会每次都从服务器端读取背景图片。
js 解决方法
原理是一致的,使用js解决方法为佳
js 解决方法
try{
document.execCommand("BackgroundImageCache",false,true);
}catch(ex){
// do nothing
}
html { filter: expression(document.execCommand("BackgroundImageCache", false, true)); }原理是一致的,使用js解决方法为佳

本文介绍了一个IE6浏览器中存在的背景图片缓存问题及其解决方案。通过使用JavaScript或者CSS的方法来启用BackgroundImageCache功能,可以有效避免每次加载页面时重新从服务器获取背景图片的问题。

被折叠的 条评论
为什么被折叠?



