<img src="noexist.gif" οnerrοr="this.src='http://www.lanrentuku.com/images/logo.jpg'" />
<p>查找更多代码,请访问:<a href="http://www.lanrentuku.com" target="_blank">懒人图库</a></p>
通过这个方法,就可以实现当没有图片或图片丢失的情况,显示一个默认图片。以后,不用通过程序来判断图片是否存在了。嘿嘿~
<img src="noexist.gif" οnerrοr="this.src='http://www.lanrentuku.com/images/logo.jpg'" />
<p>查找更多代码,请访问:<a href="http://www.lanrentuku.com" target="_blank">懒人图库</a></p>
通过这个方法,就可以实现当没有图片或图片丢失的情况,显示一个默认图片。以后,不用通过程序来判断图片是否存在了。嘿嘿~