我很好奇,当图片加载错误发生(例如图片不存在)时,是否有办法避免在电子邮件模板中显示错误帧?你可以在下面的图片中看到它。我有一些动态的内容。
我尝试设置图像onerror="this.onerror=null;this.style='display:none;'",但我对它不起作用并不感到惊讶:

发布于 2019-10-22 04:26:56
你接近了正确的答案-如果你不想看到任何替代图像,这将是可行的:
 <img src="incorrect_path_to_image"  onerror="this.onerror=null;this.style.display='none';"/>https://stackoverflow.com/questions/58493306
复制相似问题