CSS 样式在 Outlook 2010 中不起作用?

标签 css outlook stylesheet

如果我在 outlook 中使用样式,它将不起作用。

我该如何解决?我说的是这个样式代码:

<div id="BodyID" Style=" word-spacing:2px;  min-width:0px; min-height:0px;max-width:693px; max-height:490px;  height:485px; background-color:#f4f4f4; border:1px solid #e4e4e4; font-family:Arial;">

最佳答案

不幸的是,Outlook 支持的内容大致相当于 IE5 兼容的 HTML。这真的很糟糕。这是关于 Word 2007 HTML and CSS Rendering Capabilities in Outlook 2007 的详细 MSDN 文章,我认为 Outlook 2010 的变化不大。

老实说,我能够让 outlook HTML 看起来像我想要的方式的唯一方法是使用大致 HTML2 标准标签和属性手动生成 HTML,而不是完全不使用 CSS。一些 CSS 呈现,但它确实成败。

关于CSS 样式在 Outlook 2010 中不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8310609/

相关文章:

.net - 以编程方式使用Outlook“投票”功能

jquery - setInterval 和 setTimeout 在悬停时停止在一起

html - 帮助将此表转换为 div 和 css

html - 我的网站有一个小错误

excel - 如何在 VBA 中根据我的文本创建表格

c# - Outlook 加载项部署

css - 使用 Bootstrap 使用宽表制作响应式布局的最佳方法是什么?

php - Zend 框架 : How to unset the one stylesheet from the HeadLink helper

html - 如何强制 <noscript> 内联并继承 CSS 样式?

python - 在 python webkit 中使用 svg 字体