【发布时间】:2014-09-07 18:44:56
【问题描述】:
我已经为电子邮件通讯上的标题图像编写了这个,它允许文本和按钮覆盖图像并且也可以响应。 在测试时,它在除 Outlook 2007、2010 和 2013 之外的大多数浏览器中运行良好。
有没有办法让它与这些电子邮件客户端兼容?
谢谢
<tr>
<td height="auto" align="center" valign="top">
<table border="0" cellpadding="0" align="center" cellspacing="0" width="100%" id="templateHeader" >
<tr>
<td valign="top" height="auto" class="headerContent">
<table width="100%" border="0" align="center">
<tr>
<td class="image-wrapper">
<img src="header.jpg" width='100%' alt="Header image" />
<p align="center" class="headerContent1">Heading<br>
5th July 2015
<!--[if mso]>
<v:rect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="http://www.website.ca/" style="height:30px;v-text-anchor:middle;width:160px;" stroke="f" fillcolor="#53a0ce">
<w:anchorlock/>
<center>
<![endif]-->
<a href="http://www.website.com/"
style="background-color:#53a0ce;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:13px;font-weight:bold;line-height:30px;text-align:center;text-decoration:none;width:160px;-webkit-text-size-adjust:none;">Book Now</a>
<!--[if mso]>
</center>
</v:rect>
<![endif]-->
</p>
</td>
</tr>
</table>
</td>
</tr>
.image-wrapper { position: relative; width: 100%; }
.image-wrapper p { position: absolute; left: 0; top: 0; padding-top: 10%; padding-left:25%; padding-right:25%; border: 0px solid #FFF; width: 50%; color: #FFF; margin: 0; }
【问题讨论】:
标签: html-email