图片如果未正常加载,可以使用javascript来捕获。 <img src="image.gif" onerror="alert('The image could not be loaded.')" />