简体   繁体   English

如何从 Outlook 和 Gmail 中的超链接中删除下划线

[英]How to remove underline from hyperlink in outlook as well as gmail

I am new to creating emailers.我是创建电子邮件的新手。 I added strong tag after anchor tag, which removed underline from outlook but now it's coming in gmail.我在锚标记之后添加了强标记,它从 Outlook 中删除了下划线,但现在它出现在 gmail 中。 How to disable this for both, tried a lot and gave up!如何为两者禁用此功能,尝试了很多并放弃了!

my codes are我的代码是

 <a href="#" target="_blank" style="color:#000000; text-decoration:none;"><strong>Getting Started with Our Services</strong></a>

gmail to gmail, outlook to outlook it's working, but when I send outlook to gmail or gmail to outlook, underline is coming in all the hyperlinks :( gmail 到 gmail,outlook 到 Outlook 可以正常工作,但是当我将 Outlook 发送到 gmail 或 gmail 到 Outlook 时,所有超链接中都会出现下划线:(

There's nothing wrong with the line of code that you are using, however you can add !important if perhaps there is something in the embedded CSS (in the <style> section in the <head> ).您使用的代码行没有任何问题,但是您可以添加 !important 如果嵌入的 CSS 中可能有某些内容(在<head><style>部分)。

Ie IE

<a href="#" target="_blank" style="color:#000000!important; text-decoration:none!important;"><strong>Getting Started with Our Services</strong></a>

However, I suspect your issue is with the fact that you are sending emails from one service to another.但是,我怀疑您的问题在于您将电子邮件从一项服务发送到另一项服务。 If you are forwarding emails, the format changes are difficult to predict.如果您转发电子邮件,则很难预测格式的变化。 That is not the way to test the email.这不是测试电子邮件的方法。 You need to send the email from the HTML directly.您需要直接从 HTML 发送电子邮件。 You can do that via your ESP, or via a service such as Putsmail (by Litmus).您可以通过 ESP 或通过诸如Putsmail (由 Litmus 提供)之类的服务来执行此操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM