zoukankan      html  css  js  c++  java
  • X-UA-Compatible设置IE浏览器兼容模式

    文件兼容性用来告诉IE,让它如何来编译你的网页。

    指定 文件兼容性模式

    以下是指定为Emulate IE7 mode 兼容性范例。

    <html>
    <head>
    <!-- Mimic Internet Explorer 7 -->
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title>Title</title>
    </head>
    <body>
        <p>Content.</p>
    </body>
    </html>
    

    其内容随著指定的页面模式而更改,当要模拟IE7时,指定IE=EmulateIE7,指定IE=5, IE=7, 或IE=8来选择其中一种兼容性模式。

    <meta http-equiv="X-UA-Compatible" content="IE=5; IE=8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    

    可以指定IE=edge来指示IE8使用它支持的最高模式。
    实际上IE只会执行网页中第一个X-UA-Compatible标头。

  • 相关阅读:
    周总结(第十一周)
    周总结(第十周)
    周总结(第九周)
    周总结(第八周)
    周总结(第七周)
    周总结(第六周)
    周总结(第5周)
    周总结(第四周)
    周记
    补周记
  • 原文地址:https://www.cnblogs.com/sameen/p/5398235.html
Copyright © 2011-2022 走看看