标签: ie-compatibility-mode

如何在IE中禁用兼容性视图

我想知道如何阻止使用IE 8的用户进入兼容模式?

<meta http-equiv="X-UA-Compatible" content="IE=8" />
Run Code Online (Sandbox Code Playgroud)

我发现这个标签,我认为这迫使人们保持IE-8模式,但我不太确定,不能检查,因为我有IE 9.

如果人们处于IE 9模式,我强迫他们不进入IE 8或IE 7兼容模式?

我试着将上面的代码放在我的代码中并转到IE 9 - >工具 - >兼容性视图(灰显)

但"兼容性视图设置"并未显示为灰色,似乎您可以通过那里添加该网站.

所以不应该禁用?

internet-explorer internet-explorer-8 internet-explorer-9 ie-compatibility-mode x-ua-compatible

74
推荐指数
5
解决办法
14万
查看次数

IE11开发工具中的IE7/8/9/10仿真器在哪里?

IE11刚刚发布(作为开发人员预览版),我在IE11开发工具中找不到IE7/8/9/10模拟器.有谁知道现在在哪里找到它们?

internet-explorer ie-compatibility-mode internet-explorer-11

53
推荐指数
1
解决办法
15万
查看次数

如何防止IE9以兼容模式呈现Intranet站点

IE9有一个奇怪的问题,它以兼容模式呈现内部网站点.

有谁知道如何防止这种情况发生?

注意:我不是在寻找一种方法来阻止它在单个用户计算机上,而是一些编程方式来防止站点在兼容模式下进行渲染.

internet-explorer compatibility-mode internet-explorer-9 ie-compatibility-mode

26
推荐指数
1
解决办法
2万
查看次数

IE11通过javascript检测兼容性视图是否为ON

有没有人知道如何通过javascript检查IE 11兼容模式是否为ON?

我将url添加到列表兼容性视图设置中.但是,当我这样做

navigator.userAgent
Run Code Online (Sandbox Code Playgroud)

在开发人员工具中,它返回

Mozilla/5.0(Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; InfoPath.3; rv :11.0)像Gecko

看看微软网站(http://msdn.microsoft.com/en-us/library/ie/hh869301(v=vs.85).aspx),它说

兼容("兼容")和浏览器("MSIE")令牌已被删除.

有关检测页面是否通过javascript使用兼容性视图的任何帮助都会非常有用.提前致谢.

javascript ie-compatibility-mode internet-explorer-11

18
推荐指数
4
解决办法
4万
查看次数

IE中"怪癖模式"和"兼容模式"之间有什么区别?

我以为他们是一回事,只是我发现他们不是!

使用IE8我可以通过3种不同的方式显示相同的网页:

  1. 标准模式.XHTML严格DOCTYPE位于网页的顶部.

  2. 与上面相同,只是在IE8中点击了"兼容模式".现在网页显示有点奇怪.

  3. 如果我从网页中删除DOCTYPE(强制怪癖模式?).现在网页显示非常糟糕,与在"兼容模式"下查看时不同.此时点击'compatibilitybilty mode'没有任何区别.

internet-explorer quirks-mode ie-compatibility-mode

10
推荐指数
1
解决办法
6854
查看次数

如何在IE 10的IE 9,8 + 7模式中删除交叉标志和密码显示标志?

我尝试使用以下解决方案来删除"交叉"和"密码显示"标志,但它仅适用于IE 10模式.我想从IE 10的每个版本模式(9,8和7)中删除"Cross"和"password revel"符号.

<style>
    ::-ms-clear{display: none;}
    ::-ms-reveal{display: none;}
</style>
Run Code Online (Sandbox Code Playgroud)

我正在分享演示表格的截图. 请建议解决方案.

下面的截图来自IE7

html css internet-explorer ie-compatibility-mode internet-explorer-10

7
推荐指数
1
解决办法
5196
查看次数

使用javascript强制IE9进入兼容模式

我有一个框架需要兼容模式,但父框架似乎是设置它所以框架内的以下标签什么都不做.

    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
Run Code Online (Sandbox Code Playgroud)

无论如何,只有将compat模式应用于帧,或者让帧将compat模式应用于父帧.

正在考虑是否有一个javascript方法来切换模式我可以将它应用于子框架的父框架.

javascript internet-explorer-9 ie-compatibility-mode

5
推荐指数
1
解决办法
2万
查看次数

IE9在IE7文档模式下抛出我的页面,<!DOCTYPE html>被注释掉了

我的网页有以下doctype

<!DOCTYPE html>
Run Code Online (Sandbox Code Playgroud)

以上行是我的HTML页面上的第一行.这行之前没有额外的空格或注释.<!DOCTYPE html> 当我使用开发人员工具检查html页面时,页面仍处于IE7文档模式并被注释掉.

我知道我可以通过包含以下元标记来强制某种文档模式

<meta http-equiv="X-UA-Compatible" content="IE=edge" />
Run Code Online (Sandbox Code Playgroud)

但我不应该使用它,我不应该去工具并更改兼容性视图设置(工具 - >兼容性视图设置).我还检查了文档是否是使用HTML5验证器的有效HTML5文档.

我搜索的一些解决方案是CSS导致这个问题,即.因为使用Type 1字体(Helevetica).我检查了我的CSS,我们没有使用这种字体.

基本上我需要知道导致这种异常行为的原因是什么.是一些导致这种情况的css或javascript.

编辑:正如其中一条评论中提到的,我尝试加载一个简单的html页面,如下所示

<!DOCTYPE html>
  <html>
   <head>

   <title>Hello Wrold</title>
   </head>
   <body>
      <div>hello world!!</div>
   </body>
  </html>
Run Code Online (Sandbox Code Playgroud)

它的行为方式相同.在IE7文档模式下加载页面.

html css html5 internet-explorer-9 ie-compatibility-mode

5
推荐指数
1
解决办法
3106
查看次数

如何以编程方式将网站添加到兼容性列表Internet Explorer 11?

我尝试在以下位置添加注册表项:

Hive: HKEY_CURRENT_USER
Key Path: Software\Policies\Microsoft\Internet Explorer\BrowserEmulation\PolicyList\
Value name: sub.companyname.com
Value data: sub.companyname.com
Run Code Online (Sandbox Code Playgroud)

但是,在Internet Explorer 11中,此方法不起作用,因为列表已移动.

My.Computer.Registry.SetValue("Software\Policies\Microsoft\Internet Explorer\BrowserEmulation\PolicyList", "sub.companyname.com", "sub.companyname.com")
Run Code Online (Sandbox Code Playgroud)

vb.net internet-explorer compatibility-mode ie-compatibility-mode

5
推荐指数
2
解决办法
4万
查看次数

在showModalDialog; 在IE中打开一个新窗口

请参阅下面的更新(11/27)

我有一个模态窗口,它在iframe(ASP webforms应用程序)中使用它的内容启动.我们需要将模式重定向到另一个页面,但由于安全原因(Paypal处理页面),它不能在iframe中.在Chrome和IE标准模式下,我们的代码可以正确地将模式的URL更改为正确的URL.但是,在兼容模式下,重定向会导致使用正确的URL打开新的模式窗口.我们如何阻止它打开一个新窗口并实际重定向?

这是我们目前的代码:

dialog.redirect = function (location, ignoreFrames) {
        /// <summary>Redirects the dialog to a new URL</summary>
        /// <param name="location" type="String"></param>
        /// <param name="ignoreFrames" type="Boolean">If true, the dialog's URL will be changed instead of any parent frame URLs</param>

        if (ignoreFrames === undefined) {
            ignoreFrames = true;
        }

        if (ignoreFrames === true) {
            if (window.top) {
                //Chrome and IE9+
                window.top.document.location.replace(location);
            } else {
                //This was a supposed fix but it did not change the outcome
                //<IE8 and compat mode
                var …
Run Code Online (Sandbox Code Playgroud)

html javascript asp.net modal-dialog ie-compatibility-mode

5
推荐指数
1
解决办法
2万
查看次数

Internet Explorer - 如何强制某些站点的兼容模式?

我想强制IE10在IE9模式下从我的内部网渲染某些网站.

我尝试使用本地兼容性列表无效(%LocalAppData%\ Microsoft\Internet Explorer\IECompatData\iecompatdata.xml).我尝试将以下条目添加到该文件中:

<domain docMode ="EmulateIE9"> projects.mycompany.com </ domain>

有人知道这是否可能?或者也许有一个插件可以动态插入doctype?

我也可以使用fiddler,但我想知道是否有更简单的解决方案.

更新:澄清一下,我需要一个适用于客户端的解决方案.我无法访问服务器.例如,我可能希望在http://abc.com的某个页面中修改标题(插入DOCTYPE),我无法访问该页面.我可以用Fiddler或像GreaseMonkey(Trixie for IE)这样的东西来做,但我首先在弄脏我的手之前寻找一个更简单的解决方案.

internet-explorer ie-compatibility-mode

4
推荐指数
1
解决办法
5万
查看次数

为什么IE8处于IE7模式.变量"IE"== 7

我在我的HTML页面中有如下所示的标题,我在IE8中打开此站点.当我在"Web Developer"中查看时,"if IE 7"处于活动状态.WebBrowser在"IE8 Compact VIew"上设置BrowserMode,在"IE7标准"上设置"文档模式".我在网站上有javascript,这对这些设置不起作用.为什么会这样?为什么IE变量等于7?为什么浏览器处于这些模式?

<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7 ]> <html lang="de" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html lang="de" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="de" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="de" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--><html lang="de" class="no-js"> <!--<![endif]-->
Run Code Online (Sandbox Code Playgroud)

compatibility internet-explorer internet-explorer-8 ie-compatibility-mode

3
推荐指数
1
解决办法
3249
查看次数