1
我尝试两种不同的技术:对IE7,IE8预载图片
url = 'http://domain.com/image.gif';
$('body').append('<img style="display:none" src="'+url+'" />');
和
image = Image(1,1);
image.src = 'http://domain.com/image.gif';
形象得到IE6,Chrome浏览器预装8,火狐3.5 +
但无法让这些工作在IE8或IE7中
任何想法?
不要设置显示:无 - 也许IE正在优化它一些奇怪的方式;只是不要将图像附加到身体上,它不会显示 – Andrey 2011-02-03 17:46:33
@Andrey:我的服务器上没有显示http调用,每次页面加载时图像URL都会发生变化 – RadiantHex 2011-02-03 17:48:15