覆盖Outlook 2007,Word 2007中的CSS和HTML样式 [英] Override CSS and HTML Styles in Outlook 2007, Word 2007

查看:241
本文介绍了覆盖Outlook 2007,Word 2007中的CSS和HTML样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Internet Explorer 8中,可以覆盖CSS样式和HTML标签:



工具 - > Internet选项 - >辅助功能使用我的样式表(复选框)。



我可以指定一个包含我自己的CSS片段的文件。指定!important修饰符会导致CSS代码覆盖现有的格式。



有没有办法做到这一点或在Outlook 2007类似的东西?我理解Outlook 2007使用Word 2007 HTML和CSS引擎。因此,Word的解决方案可能适用于Outlook 2007.



我正在尝试打印包含HTML表的电子邮件。表格通常包含的宽度设置比我需要打印的8.5英寸页面宽。此外,还经常包括< td nowrap 标记。结果是文本在右边缘被切掉。



如果我可以覆盖width和nowrap标签,我应该能够防止截断。我如何做到这一点?



理想的解决方案将完全在Word / Outlook和CSS。 VBA是一个选项,但只有当它可以自动应用。手动运行宏不是一个选项。

解决方案

这是不可能的,因为Microsoft开发人员网络p>


  • 媒体(screen | print | projection | braille | speech | all)



在Word 2007和Outlook 2007中不受支持。



http://msdn.microsoft.com/en-us/library/aa338201.aspx


In Internet Explorer 8, it is possible to override CSS styles and HTML tags using:

Tools -> Internet Options -> Accessibility (button) -> Format documents using my style sheet (check box).

There I can specify a file containing my own CSS snippet. Specifying the "!important" modifier causes the CSS code to override existing formatting.

Is there a way to do this or something similar in Outlook 2007? I understand that Outlook 2007 uses the Word 2007 HTML and CSS engine. Therefore, a solution for Word might be applicable to Outlook 2007.

I am attempting to print emails that contain HTML tables. The tables often contain a width setting that is wider than the 8.5-inch page I need to print to. Additionally, the <td nowrap tag is often included. The result is that text is cut off at the right margin.

If I can override the width and nowrap tags, I should be able to prevent truncation. How can I do this?

The ideal solution would be accomplished solely in Word / Outlook and CSS. VBA is an option, but only if it can be applied automatically. Manually running a macro is not an option.

解决方案

This is not possible because the Microsoft Developer Network (MSDN) states that

  • media ( screen | print | projection | braille | speech | all )

is not supported in Word 2007 and therefore Outlook 2007.

http://msdn.microsoft.com/en-us/library/aa338201.aspx

这篇关于覆盖Outlook 2007,Word 2007中的CSS和HTML样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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