强制IE 11表现为IE 10 [英] Forcing IE 11 to behave as IE 10

查看:145
本文介绍了强制IE 11表现为IE 10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们遇到了Internet Explorer的一个不寻常的错误,我们需要强制IE 11表现为IE 10(因为IE 10中不存在此错误)。

We've run into an unusual bug with Internet Explorer and we need to force IE 11 to behave as IE 10 (since this bug is not present in IE 10).

我尝试了以下内容:

    <meta http-equiv="x-ua-compatible" content="IE=10">

但不幸的是,这不起作用,我没有从Google搜索或文档中找到任何相关或有用的信息。那么我们如何让IE 11 表现为IE 10?

but unfortunately this does not work and I have not found anything relevant or helpful from Google searches or the docs. So how do we get IE 11 to behave as IE 10?

推荐答案

执行以下操作: / p>

Do the following:


  1. 正确的元字符串是:
    < meta http-equiv =X- UA兼容content =IE = EmulateIE10/> 我在< title> 下方添加了它。保留案例,IE糟糕的代码也可能区分大小写。)

  1. The correct meta string is: <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE10"/> (I added it just below the <title>. Preserve case, IE crappy code might be also case sensitive.)

并且有效的<!DOCTYPE ... 必须出现在页面的第一行(前面没有空格或行

And a valid <!DOCTYPE... must be present at the very 1st line of your page (no space or lines before it)

您可以通过点击F12来验证它是否有效,以显示IE11开发人员工具。在左侧有一个灰色条,向下滚动并选择Emulation,如果它显示文档模式:IE10 它会没问题!

You can verify if it works by hitting F12 to show the IE11 developer tools. On the left side there is a grey bar, scroll it down and select Emulation, if it shows Document mode: IE10 it will be fine!

这篇关于强制IE 11表现为IE 10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆