html - 文本链接背景颜色上的 Outlook 深色模式混乱
问题描述
在 Outlook 暗模式下,当我已经出现标签内文本的奇怪背景颜色<a>
时(仅当锚标签具有指向它的 href 链接时)。我尝试将背景颜色设置为 a:link 和其他各种方法,但它似乎并没有被修复。任何想法 ?
下面的代码看起来几乎所有应用程序都很好,但在某些 Outlook 暗模式下,会出现突出显示的背景颜色。
<div style="margin-top: 10px; "><!--[if mso]>
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="http://" style="height:48px;v-text-anchor:middle;width:155px;" arcsize="17%" stroke="f" fillcolor="#4e40ef">
<w:anchorlock/>
<center>
<![endif]-->
<a href="http://google.com"
style="background-color:orange; color:white; text-align:center;text-decoration:none;width:155px;">Click here</a>
<!--[if mso]>
</center>
</v:roundrect>
<![endif]--></div>
解决方案
您是否尝试将背景色设置为与其中有问题的标签<div>
相同的背景色?<a>
这可能会消除色差。
推荐阅读
- java - 如何使用多种类型的 customViewHolder 在 recyclerView 中实现 recyclerView.smoothScrollToPosition(position)?
- opencart-3 - 如何在 OpenCart 3.0.3.1 中设计 LinkedIn 插件?我可以得到设计这个插件的流程吗?
- scala - 是否可以将 HMap 从 A 类型转换为多种其他类型?
- javascript - 联系表格不向电子邮件发送数据
- google-analytics - 为什么当我选择不同的日期时,来自 Google 分析查询资源管理器的数据会发生变化?
- sql-server - Microsoft Flow:SQL 目标的字符串到 GUID 转换
- android - Activity已经在AndroidManifest.xml中注册了,但是Monkey运行时会出现ActivityNotFoundException
- apache-spark - spark 结构化流 2.3.0 | 阅读 Avro Kafka 主题 | 未找到必需的属性“值”;
- c# - 如何在 Database.EnsureCreated() EF Xamarin.Forms 之后使用 Database.Migration()
- php - 辅助函数在 CodeIgniter 中无法正常工作