IE 背景闪烁 ( Background Flicker )

1. Css处理:

html { filter: expression(document.execCommand("BackgroundImageCache", false, true)); }

( 缺点:expression 影响性能 )

2. JavaScript处理:

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

3. 针对IE6比较完美的Css方案:

html {
  zoom:expression(function(ele){
  document.execCommand('BackgroundImageCache', false, true);
  ele.style.zoom = '1';	
  }(this));	
}

转载于:https://www.cnblogs.com/Format2012/archive/2012/06/15/2551384.html

你可能感兴趣的:(IE 背景闪烁 ( Background Flicker ))