简体   繁体   English

更改outlook html电子邮件中呈现的电子邮件地址上的超链接的颜色

[英]Change the colour of a hyperlink on an email address that is rendered in outlook html email

I have some C# code that inserts an email address into a placeholder in a html string (placeholder is in the format %Email%) and then sends this html as an email which is then opened using Outlook. 我有一些C#代码将电子邮件地址插入到html字符串中的占位符(占位符的格式为%Email%),然后将此html作为电子邮件发送,然后使用Outlook打开。

Basically I want the hyperlink colour to be white rather than the default blue. 基本上我希望超链接颜色是白色而不是默认的蓝色。

I have tried to use CSS but not does not seem to work with the output in Outlook. 我曾尝试使用CSS,但似乎没有使用Outlook中的输出。 I have also tried hard-coding the colour into html but still without luck. 我也尝试将颜色硬编码为html,但仍然没有运气。 It seems that the default hyperlink colour is overriding the colour I hard-coded. 似乎默认的超链接颜色覆盖了我硬编码的颜色。

Any help with this would be greatly appreciated. 任何有关这方面的帮助将不胜感激。

Thank you. 谢谢。

It's probably too late. 这可能为时已晚。 Try putting the style on a span tag inside the a tag. 尝试将样式放在标记内的span标记上。

<a href="#" style="color: #fff;"><span style="color: #fff;">Link</span></a>

你尝试过内联样式吗?

<a href="#" style="color: #fff;">Link</a>

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

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