图像不存在时,可用一张通用图片代替

 <img src="image.gif" onerror="this.src='a.jpg'" />
原文地址:https://www.cnblogs.com/wuheng1991/p/5197253.html