Override CSS and HTML Styles in Outlook 2007, Word 2007

北城以北 提交于 2019-12-11 05:54:55

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/7562147/override-css-and-html-styles-in-outlook-2007-word-2007

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!