CSS!重要声明在Outlook 2007中不起作用 [英] CSS !important declaration not working in Outlook 2007

查看:80
本文介绍了CSS!重要声明在Outlook 2007中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个锚色为红色的电子邮件模板,它应该带有!important 声明,以避免继承其他样式值.

I want to create an email template with anchor color red, it should be with !important declaration to avoid inheriting other style values.

不幸的是,它在Outlook 2007/2010中无法正确呈现...任何人都有类似的经历吗?与Outlook中的!important标签支持有关的问题.

Unfortunately it is not render properly in Outlook 2007/2010... Any one have similar experience? Issue related to !important tag support in Outlook.

我在这里列出了我的代码,请看看.

I have listed my code here, Please have look.

<body><table width="500" border="1" cellspacing="5" cellpadding="5">
  <tbody>
    <tr>
      <td>Lorem Ipsum is simply dummy text into <a href="#">electronic</a> typesetting, and more recently with <a href="#" style="color:#F30408 !important;">desktop</a> publishing software like Aldus PageMaker including versions of Lorem Ipsum.</td>
    </tr>
  </tbody>
</table>
</body>

推荐答案

我尝试了以下代码:

<p><a href='#' style='color: #F30408'>desktop</a></p>
<p><a href='#' style='color: #F30408 !important'>desktop</a></p>
<p><a href='#'><font color='#F30408'>desktop</a></p>

您可以在此处查看结果:

You can see the results here:

因此,基本上,!important 似乎在Outlook 2010中不起作用.

So basically, !important doesn't work in Outlook 2010 it seems.

这篇关于CSS!重要声明在Outlook 2007中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆