Outlook 2007、2010、2013 和 2016 中的按钮

bho*_*ood 1 html outlook html-email outlook-2007 outlook-2010

我在我正在编码的电子邮件的按钮内得到了这个笔画。它只出现在 Outlook 2007、2010 和 2013 中,我不知道如何删除它?有任何想法吗?

在此处输入图片说明

代码:

`<a href="http://buttons.cm" style="color: #ffffff; background: #a52023; 
 border: 1px solid #a52023;  display: inline-block; font-family: tahoma;
 font-weight: 900; letter-spacing: 2px; font-size: 16px; border-radius: 80px;
 line-height: 60px; text-align: center; text-decoration: none; width: 275px;
 -webkit-text-size-adjust: none; mso-hide: all;">GET FREE WORKWEAR</a>`
Run Code Online (Sandbox Code Playgroud)

Ted*_*oas 9

是的,Windows Outlook 2007、2010、2013 甚至 2016 都对盒模型的支持参差不齐。为了让一个漂亮的、可点击的按钮工作(不幸的是)需要更多的代码。

可能需要调整边框厚度、填充和&nbsp;s 的数量,但这应该可以解决您的问题,并在所有电子邮件客户端(包括 Outlook)中为您提供一个外观漂亮的工作按钮:

<!-- Button : Begin -->
<table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" style="margin: auto;">
    <tr>
        <td style="border-radius: 3px; background: #a52023; text-align: center;">
            <a href="http://www.google.com" style="background: #a52023; border: 15px solid #a52023; font-family: tahoma; font-weight: 900; letter-spacing: 2px; font-size: 16px; mso-height-rule: exactly; line-height: 60px; text-align: center; text-decoration: none; display: block; border-radius: 3px; font-weight: 900; text-transform: uppercase;">
                &nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#ffffff">Get Free Workwear</span>&nbsp;&nbsp;&nbsp;&nbsp;
            </a>
        </td>
    </tr>
</table>
<!-- Button : END -->
Run Code Online (Sandbox Code Playgroud)


小智 6

这在 Outlook 中有效(来源:https ://gist.github.com/benknight/3316487 ):

<span style="display: inline-block; text-align: center; background-color: #d21d00; border: 1px solid #5d150e; color: white;">
  <span style="display: inline-block; background-color: #d21d00; color: white; border-width: 1px 0 0 1px; border-color: #f3948a; border-style: solid;">
    <a style="display: inline-block; text-decoration: none; font-weight: bold; color: white; border-color: #d21d00; border-width: 5px 10px; border-style: solid; white-space: nowrap;" href="https://stackoverflow.com">Go to Stackoverflow</a>
  </span>
</span>
Run Code Online (Sandbox Code Playgroud)