display:none doesn't work on Outlook 2007

后端 未结 12 1661
鱼传尺愫
鱼传尺愫 2020-12-15 23:24

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; }
         


        
12条回答
  •  醉梦人生
    2020-12-16 00:11

    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).

    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.

提交回复
热议问题