Home >Backend Development >PHP Tutorial >菜鸟一枚,大神帮忙

菜鸟一枚,大神帮忙

WBOY
WBOYOriginal
2016-06-23 14:11:041061browse

     <img  src="1.jpg" onerror="javascript:this.src='images/default/noface.gif';" alt="菜鸟一枚,大神帮忙" >

在火狐浏览器里 不显示默认图片,该怎么处理(ie 显示)?


回复讨论(解决方案)

测试可以,你的默认图片不存在?

存在   ie 下能正常显示

测试了一下可以的啊

看来是我人品不好啊!!!!

我知道是怎么回事了  
菜鸟一枚,大神帮忙 /> 
即使src="$rs[picurl]"图片为空,但是也要在$rs[picurl]后面加个空格,不然火狐显示不了

测试了下 火狐也是可以叠

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn