代码之家  ›  专栏  ›  技术社区  ›  ilMattion

Internet Explorer复古兼容性

  •  0
  • ilMattion  · 技术社区  · 11 年前

    我正在使用Internet Explorer 11和SharePoint 2010。

    我用CSS、JavaScript和jQuery创建了一个简单的HTML页面。我在SharePoint的页面中托管了我的页面。我添加了一个链接到HTML页面的简单WebPart(页面查看器)。

    如果我在本地计算机上使用IE11打开我的页面,则正确呈现;它在SharePoint的页面上不起作用。

    我在本地计算机上看到页面的属性“文档模式”为“10”,而在SharePoint 2010中为“8”。

    什么是“文档模式”属性?如何解决此问题?

    enter image description here enter image description here

    1 回复  |  直到 11 年前
        1
  •  2
  •   Community CDub    8 年前

    我解决了在html的head元素上添加以下代码的问题:

     <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    

    我在那里找到了解决方案: Forcing Internet Explorer 9 to use standards document mode