更改在 Outlook html 电子邮件中呈现的电子邮件地址上的超链接的颜色
我有一些 C# 代码,它将电子邮件地址插入到 html 字符串中的占位符中(占位符的格式为 %Email%),然后将此 html 作为电子邮件发送,然后使用 Outlook 打开该电子邮件。
基本上我希望超链接颜色为白色而不是默认的蓝色。
我尝试过使用 CSS,但似乎不适用于 Outlook 中的输出。我也尝试过将颜色硬编码到 html 中,但仍然没有运气。看来默认的超链接颜色覆盖了我硬编码的颜色。
任何对此的帮助将不胜感激。
谢谢。
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.
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. I have also tried hard-coding the colour into html but still without luck. It seems that the default hyperlink colour is overriding the colour I hard-coded.
Any help with this would be greatly appreciated.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
可能已经太晚了。尝试将样式放在 a 标签内的 span 标签上。
It's probably too late. Try putting the style on a span tag inside the a tag.
您尝试过内联样式吗?
Have you tried inline styles?