【发布时间】:2013-12-13 19:35:12
【问题描述】:
我正在发送一个 html 构建的电子邮件正文..
有没有办法在图像尚未加载时显示替代文本?
我尝试用 img 和 text 重叠两个 div,它可以工作,但问题是显示损坏的图像图标。
<div style="width:100%;min-height:50px!important;text-align:center;background-color:#eee;border-bottom:solid 2px #aaa">
<div style="min-height:10px"> </div>
<div style="min-height:30px">
<div style='width:200px;margin:0 auto;'>
<a href="http://google.com" target="_blank">
<div style='position:relative;'>
<div style='position:absolute; height:30px;width:200px;z-index:1000;'>
<img height="30" width="200" alt="View Presentation" src="http://www.clker.com/cliparts/X/1/Q/v/b/2/green-button.svg">
</div>
<div style='position:absolute;height:30px;width:200px;background-color:#EEE;'>
Click here to view
</div>
</div>
</a>
</div>
</div>
<div style="min-height:10px"> </div>
</div>
请在这里查看我的工作..
【问题讨论】: