Html 任何电子邮件客户端的电子邮件按钮样式
Html email button styling for any email clients
我有以下代码为 html 电子邮件构建按钮,我只想知道它会在所有电子邮件客户端中正常呈现吗?
<table border="0" cellpadding="12" cellspacing="0" bgcolor="#00b5cc" style="border-radius:4px;">
<tr>
<td align="center">
<a href="#" target="_blank" style="text-decoration:none;">
<font color="#fff">Text here</font>
</a>
</td>
</tr>
</table>
你可以使用:
Putsmail https://putsmail.com/tests/new
石蕊 https://litmusapp.com/
MailChimp https://www.mailchimp.com/
下面是来自 Email on Acid 站点的压缩代码。我一直在使用它,它在所有电子邮件客户端中呈现相同的效果。
注意事项:
- 如果要删除圆角边缘,请删除两个边框半径(td 和标签)。无论哪种方式,它都会在 Outlook 上呈现为锐边。
- 如果您删除 td 和标签上的背景颜色,它应该会显示一个带有边框的 CTA。这仍然会在所有电子邮件客户端中呈现相同的效果
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: auto;">
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; background-color: #3498db; border-radius:5px; text-align: center;" valign="top" bgcolor="#3498db" align="center"> <a href="" target="_blank" style="display: inline-block; color: #ffffff; background-color: #3498db; border: solid 1px #3498db; border-radius: 5px; box-sizing: border-box; cursor: pointer; text-decoration: none; font-size: 14px; font-weight: bold; margin: 0; padding: 12px 25px; text-transform: capitalize; border-color: #3498db;">Call to action</a> </td>
</tr>
</table>
希望这就是您要找的。
我有以下代码为 html 电子邮件构建按钮,我只想知道它会在所有电子邮件客户端中正常呈现吗?
<table border="0" cellpadding="12" cellspacing="0" bgcolor="#00b5cc" style="border-radius:4px;">
<tr>
<td align="center">
<a href="#" target="_blank" style="text-decoration:none;">
<font color="#fff">Text here</font>
</a>
</td>
</tr>
</table>
你可以使用:
Putsmail https://putsmail.com/tests/new
石蕊 https://litmusapp.com/
MailChimp https://www.mailchimp.com/
下面是来自 Email on Acid 站点的压缩代码。我一直在使用它,它在所有电子邮件客户端中呈现相同的效果。
注意事项:
- 如果要删除圆角边缘,请删除两个边框半径(td 和标签)。无论哪种方式,它都会在 Outlook 上呈现为锐边。
- 如果您删除 td 和标签上的背景颜色,它应该会显示一个带有边框的 CTA。这仍然会在所有电子邮件客户端中呈现相同的效果
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: auto;">
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; background-color: #3498db; border-radius:5px; text-align: center;" valign="top" bgcolor="#3498db" align="center"> <a href="" target="_blank" style="display: inline-block; color: #ffffff; background-color: #3498db; border: solid 1px #3498db; border-radius: 5px; box-sizing: border-box; cursor: pointer; text-decoration: none; font-size: 14px; font-weight: bold; margin: 0; padding: 12px 25px; text-transform: capitalize; border-color: #3498db;">Call to action</a> </td>
</tr>
</table>
希望这就是您要找的。