首页 > 解决方案 > 需要有关电子邮件上的 html 按钮的帮助

问题描述

我有这个按钮可以在浏览器上正确重定向;但是,每当我将其放在 Gmail 的电子邮件中时,它都不会重定向

<DIV style="TEXT-ALIGN: center">
    <A style="FONT-SIZE: 14px; 
              FONT-FAMILY: Arial; 
              WIDTH: 100%; 
              COLOR: #fff; 
              TEXT-ALIGN: center; 
              DISPLAY: inline-block; 
              LINE-HEIGHT: 50px; 
              BACKGROUND-COLOR: #0070ba; 
              border-radius: 50px" href="[websitelinkhere}">
        <STRONG>vérifiez votre compte </STRONG>
    </A>
</DIV>

标签: html

解决方案


现在试试。它需要经过html验证。每次检查:https ://validator.w3.org

<div style="text-align: center">
    <a style="font-size: 14px; 
              font-family: Arial; 
              width: 100%; 
              color: #fff; 
              text-align: center; 
              display: inline-block; 
              line-height: 50px; 
              background-color: #0070ba; 
              border-radius: 50px" href="[websitelinkhere]">
        <strong>vérifiez votre compte </strong>
    </a>
</div>

推荐阅读