【发布时间】:2011-08-14 21:52:30
【问题描述】:
http://belbelila.com 的网站是一个简单的 wordpress 博客。该网站在 FireFox 上显示良好,但在 IE 8 或 9 中,它在第一次发布后被切断,我不知道为什么。以下是不同之处的屏幕截图:
火狐:
IE8: 谁能给我一个提示 - 是什么原因造成的?
【问题讨论】:
标签: html css internet-explorer wordpress wordpress-theming
http://belbelila.com 的网站是一个简单的 wordpress 博客。该网站在 FireFox 上显示良好,但在 IE 8 或 9 中,它在第一次发布后被切断,我不知道为什么。以下是不同之处的屏幕截图:
火狐:
IE8: 谁能给我一个提示 - 是什么原因造成的?
【问题讨论】:
标签: html css internet-explorer wordpress wordpress-theming
这就是这部分的全部内容,它是从 Office 产品中复制和粘贴的结果。
通常的罪魁祸首是 Microsoft Word:
<!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View>
<w:Zoom>0</w:Zoom> <w:HyphenationZone>21</w:HyphenationZone>
<w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell />
<w:WrapTextWithPunct /> <w:UseAsianBreakRules /> </w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument>
</xml><![endif]--><!--[if gte mso 10]> <mce:style><! /* Style Definitions */
table.MsoNormalTable {mso-style-name:"Нормална таблица";
mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes;
mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm; mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan; font-size:10.0pt;
font-family:"Times New Roman";} --> <!--[endif]-->
(我添加了换行符)
删除它,我 99% 确定它会被修复(我没有测试它)。
该块内的 IE cmets 格式错误/不匹配,因此 IE 认为大部分 HTML 是注释。
【讨论】: