CSS 样式在 Outlook 2010 中不起作用? [英] CSS Styling won't work in outlook 2010?

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

问题描述

如果我在 Outlook 中使用样式,它将不起作用.

If I use styling in my outlook, it won't work.

我该如何解决?我说的是这种风格的代码:

how can I fix it? I am talking about this style code:

<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.这真的很糟糕.这是有关 Outlook 中的 Word 2007 HTML 和 CSS 呈现功能的详细 MSDN 文章2007,我认为 Outlook 2010 的变化不大.

Unfortunately Outlook supports something roughly equivalent to IE5 compatible HTML. It's really terrible. Here's a detailed MSDN article on the Word 2007 HTML and CSS Rendering Capabilities in Outlook 2007, which I don't believe changed much for Outlook 2010.

老实说,我能够让 Outlook HTML 看起来像我想要的样子的唯一方法是使用大致 HTML2 标准标签和属性手动生成 HTML,而根本不使用 CSS.一些 CSS 渲染,但它真的命中或未命中.

Honestly, the only way I've been able to get outlook HTML to look the way I want is to hand generate the HTML using roughly HTML2 standard tags and properties and not using CSS at all. Some CSS renders, but it's really hit or miss.

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

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