如果在使用 css Sprites 背景图你没有指定一次,而是采用 Workaround,而非 Fix

那么就会出现一个bug :如果IE 的缓存控制为不缓存,每次都去服务器取资源的话,背景图会闪

这个是 chen yagnjian 提供的方案:

Client-side fix:
Tools  >  Internet Options  
>  'Settings' under Temporary Internet files  
>  Select 'Automatically'  >  OK 


CSS FIX - Insert in your CSS:
html {
  filter: expression(document.execCommand("BackgroundImageCache", false, true));
} 


Javascript FIX:
<script type="text/javascript">
try {
document.execCommand('BackgroundImageCache', false, true);
}
catch(e) {};
</script> 


转载请注明:小贺的博儿/小河的博儿

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2022-01-23
猜你喜欢
  • 2021-07-14
  • 2021-11-20
  • 2021-10-19
  • 2022-12-23
  • 2022-02-23
  • 2021-11-23
  • 2021-10-21
相关资源
相似解决方案