首页 > 解决方案 > 文本链接背景颜色上的 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>

标签: htmlcssemail-templates

解决方案


您是否尝试将背景色设置为与其中有问题的标签<div>相同的背景色?<a>这可能会消除色差。


推荐阅读