解决ie6下的背景图片缓存问题

E6下的背景图片每次使用都会重新发送请求,这会很影响代码的效率,用Css或Js可以解决这个问题

用CSS实现:

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

用JS实现:

// IE6 background image caching fix.
// Include this JavaScript a the top of your page.
try {
	document.execCommand("BackgroundImageCache", false, true);
} catch(e) {}