CSS mso- 属性列表
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14376783/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
List of mso- attributes
提问by Xaver
I'm searching for a list of Microsoft specific CSS attributes with mso- prefix.
我正在搜索带有 mso- 前缀的 Microsoft 特定 CSS 属性列表。
Any link to an offical or unofficial source would be awesome.
任何官方或非官方来源的链接都很棒。
回答by b00r00x0
I just had the same difficulties to find a list of MS Office prefixed style properties. I found this link, but it was not even well organized. So I decided to write down a list in a Gist for everyone are looking for having these troubles as well. Still not found all things, but you may find this source helpful at least as a reference on the web.
我只是在查找带有 MS Office 前缀的样式属性列表时遇到了同样的困难。我找到了这个链接,但它甚至没有组织得很好。所以我决定在 Gist 中写下一个列表,让每个人都在寻找这些麻烦。仍然没有找到所有的东西,但你可能会发现这个来源至少作为网络上的参考很有帮助。
MS Office prefixed Style propertieshttps://gist.github.com/webtobesocial/ac9d052595b406d5a5c1
MS Office 前缀样式属性https://gist.github.com/webtobesocial/ac9d052595b406d5a5c1
回答by Jukka K. Korpela
Microsoft's information on the topic can be found via the page Microsoft? Office HTML and XML Reference. It links to an .exe file, which when executed (on Windows, of course) installs C:\ofhtml9\ofhtml9.chm. The material is rather extensive and not particularly well organized. But search for “mso-” in the Search box, and you'll find a long table titled “Style Attributes” and containing both standard and nonstandard CSS properties.
可以通过页面Microsoft? Office HTML 和 XML 参考。它链接到一个 .exe 文件,该文件在执行时(当然是在 Windows 上)会安装 C:\ofhtml9\ofhtml9.chm。材料相当广泛,而且组织得不是特别好。但是在搜索框中搜索“mso-”,您会发现一个名为“样式属性”的长表,其中包含标准和非标准 CSS 属性。
The table “shows the style attributes used by Microsoft Office 2000”, but I'm not aware of similar information for other Office versions.
该表“显示了 Microsoft Office 2000 使用的样式属性”,但我不知道其他 Office 版本的类似信息。
回答by Sayo1337
This MSO - Style Reference Sheetlink has a list of 372 Microsoft specific styles which includes common ones used in email e.g. style="mso-line-height-rule:exactly;"
which prevents outlook from overwriting your line-height style line-height:20px;
etc. All you have to do with the link is type mso
into the filter bar and it should give you the list of Microsoft specific CSS attributes with mso- prefix.
此MSO - 样式参考表链接包含 372 种 Microsoft 特定样式的列表,其中包括电子邮件中常用的样式,例如style="mso-line-height-rule:exactly;"
防止 Outlook 覆盖您的行高样式line-height:20px;
等。您只需mso
在过滤器栏中键入它应该为您提供带有 mso- 前缀的 Microsoft 特定 CSS 属性列表。
回答by user1765065
The closest i can find is this list:
Link to listArchive of Link to list
I assume that a ctrl+f on mso, will quickly show you all you need? Then from there you can quickly gather your list.
我认为 mso 上的 ctrl+f 会快速显示您需要的所有内容吗?然后从那里您可以快速收集您的列表。
回答by kamelkev
Best list I've seen of the attributes is located at Litmus.
我见过的最佳属性列表位于Litmus。
The real issue isn't finding a list of mso- attributes though, it's the details as to how they work.
真正的问题不是找到 mso- 属性的列表,而是关于它们如何工作的细节。
For anyone following in my footsteps you will probably have issues opening the CHM file linked by others on this thread. There is a CHM reader for the Mac that works pretty well, though it's pointless as there is hardly any useful information contained within. You can find that reader on the App Store
对于跟随我脚步的任何人,您可能会在打开此线程上其他人链接的 CHM 文件时遇到问题。有一个适用于 Mac 的 CHM 阅读器运行良好,但它毫无意义,因为其中几乎没有任何有用的信息。您可以在App Store上找到该阅读器