简体   繁体   English

Outlook 锚标记下划线不起作用

[英]outlook anchor tag underline doesn't work

i'm going to be crazy about this.我会为这个疯狂的。 I'm trying to remove the underline inside my anchor tags in my page.我正在尝试删除页面中锚标记内的下划线。 I've tried all the solutions around the web but non of them is works.我已经尝试了网络上的所有解决方案,但没有一个是有效的。

This is the code that i'm using for tests.这是我用于测试的代码。 I've tried putting !important to text-decoration, i've tried to but a conditional style just for outlook, I tried to put the text in the a tag inside a span, but none of them still works.我试过将 !important 放在文本装饰中,我试过只是为了 Outlook 的条件样式,我试过将文本放在跨度内的 a 标签中,但它们都不起作用。 Seeing the html in the ooutlook app, it does displays correctly, but when i'm trying to see it on the outlook from browser, it doesn't work, i still see the underlined text.在 ooutlook 应用程序中查看 html,它确实显示正确,但是当我尝试从浏览器的 Outlook 中查看它时,它不起作用,我仍然看到带下划线的文本。

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>{0}</title> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <style type="text/css"> </style> </head> <body style="margin: 0; padding: 0;"> <span> <a href="http://www.w3.com" style="text-decoration: none">TEST</a> </span> </body> </html>

Someone that knows how to avoid that?有人知道如何避免这种情况吗?

it maybe text-decoration property of CSS where as override in your code plz check of your code.它可能是 CSS 的 text-decoration 属性,在您的代码中覆盖,请检查您的代码。 if it is not working then write the property of CSS text-decoration: underline !important如果它不起作用,则编写 CSS text-decoration 的属性:下划线 !important

text-decoration:none is pretty well supported in most email clients . text-decoration:none在大多数电子邮件客户端中都得到了很好的支持 And I ran a test of your code in Email on Acid , and I'm not seeing any problem with it.在 Acid 上的 Email 中对您的代码进行了测试,我没有发现它有任何问题。

Could you maybe give more details like: how you're sending your HTML email and which version of Outlook are using exactly.您能否提供更多详细信息,例如:您如何发送 HTML 电子邮件以及究竟使用的是哪个版本的 Outlook。

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

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