【发布时间】:2013-07-23 19:52:59
【问题描述】:
在为 Outlook 创建 html 电子邮件时,我偶然发现了一个我无法解决的小问题。
下面是一个 html 表格的屏幕截图。我需要使整个区域可点击,而不仅仅是文本。当我将 <a href="#"> 放在 <td> 或 <table> 周围时,它在浏览器中有效,但在 Outlook 中无效。
代码如下:
<table border="0" cellpadding="0" cellspacing="0" style="border-top-left-radius: 5px;border-top-right-radius: 5px;border-bottom-right-radius: 5px;border-bottom-left-radius: 5px;background-color: #2FBA45;border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;">
<tbody>
<tr>
<td align="center" valign="middle" style="font-family: Arial;font-size: 22px;padding: 15px;border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;">
<a href="#" title="Yes please, send me a quote." target="_self" style="font-weight: bold;letter-spacing: -0.5px;line-height: 100%;text-align: center;text-decoration: none;color: #FFFFFF;word-wrap: break-word !important; display:block; width:100%; height:100%">Yes please, send me a quote.</a>
</td>
</tr>
</tbody>
</table>
【问题讨论】:
-
查看此链接以了解电子邮件客户端支持哪些 HTML 标准 campaignmonitor.com/css
-
@AnaMaria 我知道,但如果可能,我要求替换此代码
标签: css html-table href html-email newsletter