【问题标题】:IE fails to display part of Wordpress websiteIE 无法显示 Wordpress 网站的部分内容
【发布时间】:2011-08-14 21:52:30
【问题描述】:

http://belbelila.com 的网站是一个简单的 wordpress 博客。该网站在 FireFox 上显示良好,但在 IE 8 或 9 中,它在第一次发布后被切断,我不知道为什么。以下是不同之处的屏幕截图:

火狐:

IE8: 谁能给我一个提示 - 是什么原因造成的?

【问题讨论】:

    标签: html css internet-explorer wordpress wordpress-theming


    【解决方案1】:

    这就是这部分的全部内容,它是从 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 是注释。

    【讨论】:

    • 谢谢,我为我的一个朋友创建了这个网站,他是发帖的人。我确定这是问题所在
    • 没问题!我不确定如何修复 Wordpress 以“正确接受”从 Microsoft Word 粘贴的内容,但会有办法。
    • how to paste content from Microsoft Word.的wordpress.stackexchange上查看这个答案
    • @Chris_O:谢谢! @DreamWave:见@Chris_O 的评论。
    猜你喜欢
    • 2018-05-11
    • 1970-01-01
    • 2016-03-13
    • 1970-01-01
    • 1970-01-01
    • 2016-10-20
    • 2012-04-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多