从Outlook中删除下划线gmail超链接

时间:2019-06-04 06:52:59

标签: html css outlook gmail

当我将网页内容复制到Outlook并发送到gmail时,是否可以删除gmail中的蓝色超链接下划线?

当我将文本粘贴到Outlook新邮件窗口时,有任何带下划线的链接,但是当我打开从gmail发送的信件时,我看到了丑陋的蓝色下划线。比仅在桌面gmail中显示行,在移动gmail应用中没有下划线。

我尝试了所有可以在google中找到的内容。

这是我的代码:

<style>
  a {
    color: inherit;
    text-decoration: none;
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    line-height: inherit;
  }
</style>

<table border="0" cellpadding="0" cellspacing="0">
  <tbody>
    <tr>
      <td align="center" height="69" style="height:69px;" valign="middle" width="600"><a href="mylink" target="_blank" style="color:#040400;text-decoration: none;"><h2 style="text-align: center;font-family: Arial, sans-serif;">Title</h2></a></td>
    </tr>
  </tbody>
</table>

1 个答案:

答案 0 :(得分:-1)

h2 text-decoration: none;

上添加此样式
<table border="0" cellpadding="0" cellspacing="0">
  <tbody>
    <tr>
      <td align="center" height="69" style="height:69px;" valign="middle" width="600"><a href="mylink" target="_blank" style="color:#040400;text-decoration: none;"><h2 style="text-align: center;font-family: Arial, sans-serif; text-decoration: none;">Title</h2></a></td>
    </tr>
  </tbody>
</table>