【问题标题】:X-UA-Compatible tag to use latest version of browser engine for IE7-IE9, but use IE9 for IE10X-UA-Compatible 标签为 IE7-IE9 使用最新版本的浏览器引擎,但 IE10 使用 IE9
【发布时间】:2013-02-22 16:05:55
【问题描述】:

我有一个尚未在 IE10 中测试的网站。因此,我希望 IE10 在 IE9 模式下运行它,该模式与 X-UI-Compatible 标签一起使用:

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

唯一的问题:IE8 和 IE7 无法解释此值并显示“兼容性按钮”。

我想要实现的是 IE10 以 IE9 模式呈现我的网站,IE7 应该将网站作为 IE7 运行,IE8 应该将其作为 IE8 运行,IE9 应该将其作为 IE9 运行,并且“兼容性按钮”不应该是可见。

有谁知道实现这一目标的方法吗?

【问题讨论】:

  • 让代码在 IE 中工作就像为电视调整兔耳天线。

标签: internet-explorer internet-explorer-9 compatibility internet-explorer-10


【解决方案1】:

根据用户代理渲染元标记。这需要服务器处理 -> 无法在客户端实现。

【讨论】:

    猜你喜欢
    • 2011-03-25
    • 2012-02-03
    • 1970-01-01
    • 2013-12-29
    • 2015-07-07
    • 2015-10-21
    • 1970-01-01
    • 2013-10-16
    • 1970-01-01
    相关资源
    最近更新 更多