display:none在Outlook 2007上不起作用 [英] display:none doesn't work on Outlook 2007

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

问题描述

我想从我们的系统向客户发送电子邮件,其中一些标签应该隐藏给他们。我设置了以下CSS:

I want to send an e-mail from our system to customers, where some tags should be hidden to them. I've set the following CSS:

.hidden { display: none; }

但这不起作用。

推荐答案

Outlook 2007使用Microsoft Word引擎来呈现HTML其对CSS具有非常有限的支持。 此页面描述了您可以期望工作的类型(显示是其中一个不支持的)。

Outlook 2007 uses the Microsoft Word engine for rendering HTML which has very limited support for CSS. This page describes the kind of things you can expect to work (display is one of the "not supported" ones).

不幸的是,你不能做。你可以在HTML注释<! - ... - > 中包含元素,这将阻止它渲染,但这是关于它。

Unfortunately, there's not much you can do. You can enclose the element in HTML comments <!-- ... --> which would stop it from rendering, but that's about it.

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

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