如何使MS Outlook接受CSS样式display:block? [英] How do I get MS Outlook to accept the CSS style display:block?

查看:138
本文介绍了如何使MS Outlook接受CSS样式display:block?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用服务(MailChimp)编写HTML电子邮件. MailChimp标记标题的方式是使用SPAN标记,并为标记赋予内联样式display:block.

I am composing an HTML email using a service (MailChimp). The way that MailChimp marks up headings is to use a SPAN tag and gives the tag the inline style of display:block.

MS Outlook 2010忽略此样式.我找不到任何解决方法.因此,标题会换行,从而破坏所需的页面显示.

MS Outlook 2010 ignores this style. I cannot find any work around. Thus, headings wrap, breaking the desired page display.

是的,我知道Outlook使用MS Word来显示HTML.

Yes, I know that Outlook uses MS Word to display HTML.

假设我无法干预并手动编辑标记.

如何使MS Outlook接受CSS样式display:block并显示SPAN标记作为块级元素?

How do I get MS Outlook to accept the CSS style display:block and display a SPAN tag as a block level element?

推荐答案

此版本的MS Outlook不支持CSS display属性.

The CSS display attribute is not supported in this version of MS Outlook.

以下是您可以使用和不能使用的书":

Here's "The Book" on what you can and cannot use:

campaignmonitor.com/css/

基本上,如果您不能将标记更改为本机阻止项,则说明您遇到了麻烦.

Basically, if you can't change your mark-up to a natively-block item, you're stuck.

这篇关于如何使MS Outlook接受CSS样式display:block?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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