【问题标题】:Why cursor CSS not working in Gmail?为什么光标 CSS 在 Gmail 中不起作用?
【发布时间】:2018-05-16 06:14:16
【问题描述】:

我的代码向客户端发送一封电子邮件,其中包含一个按钮,它的“光标:指针”css 在 gmail 中不起作用....

    $mail->isHTML(true);

    $mail->Body=' <a href="#">
    <button style="border: 1px solid transparent;cursor: pointer;padding: 
    10px 60px;float: right;border-radius: 3px;color: #fff;background-color: 
    #1b84e7;background-image: linear-gradient(to right,#1b84e7 0%,#1515af 
    100%);">Approve Incident</button>
    </a> ';

    if(!$mail->send()) {
    echo 'Message could not be sent.';
    echo 'Mailer Error: ' . $mail->ErrorInfo;
    } else {
    echo 'Message has been sent';
    }

【问题讨论】:

  • 发布你的css代码以便我们检查。
  • 你可能需要给我们更多的代码。

标签: php html css


【解决方案1】:

我找到了Gmail不支持光标CSS的答案,请参阅Email client css support page on Mailchimp

【讨论】:

  • 有任何替代解决方案吗?
【解决方案2】:

能否请您添加 a 标记内部 href 与 # 如下所示

<a href="#">

【讨论】:

    猜你喜欢
    • 2013-08-28
    • 1970-01-01
    • 2017-07-31
    • 1970-01-01
    • 2016-10-11
    • 2023-04-03
    • 1970-01-01
    • 2015-09-30
    • 2011-11-21
    相关资源
    最近更新 更多