强制 IE10 在 IE10 兼容性视图中运行? [英] Force IE10 to run in IE10 Compatibility View?

查看:37
本文介绍了强制 IE10 在 IE10 兼容性视图中运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序在 IE10 中损坏,但在 IE10 兼容性视图中运行良好.

I have an app that is broke in IE10 but runs fine in IE10 Compatibility View. A quick google results in the

<meta http-equiv="X-UA-Compatible" content="IE=8">
<!-- plus variations such as emulate, quirks, 7, 8, 9 --->

标签.关于该标签的一些 MS 文档位于此处.如果按 F12,您可以看到它更改了文档模式.我需要它将浏览器模式更改为 Internet Explorer 10 兼容性视图.是否有任何标签可以做到这一点?

tag. Some MS documentation on the tag is here. If you press F12 you can see that it changes the document mode. I need it to change the Browser Mode to Internet Explorer 10 Compatibility View. Is there any tag that will do this?

更新我需要提到的是,我已经尝试了以下所有文档类型,但都没有奏效.我认为让它在 IE10 中工作的唯一方法是使用兼容性视图.

UPDATE I need to mention that I have tried all of the following doctypes and none of them work. I think the only way to get this to work in IE10 is to use Compatibility View.

<!--
    <!DOCTYPE html>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
    TRIED NO DOCTYPE AT ALL TOO
-->

推荐答案

如果你想设置兼容模式在浏览器本身而不是在 html 做关注

If you want to set the compatibility mode in the browser itself and not in the html do the following

  1. 打开 IE 10
  2. 按 ALT 键调出 IE 菜单栏
  3. 点击工具菜单
  4. 点击兼容性视图设置.
  5. 点击复选框;在兼容性视图中显示所有网站
  6. 仅将所需网站添加到兼容性视图中

如下图所示.然后该网站应该会以 IE 10 兼容性视图打开.

As shown in the image below. The website should then open up with IE 10 Compatibility view.

这篇关于强制 IE10 在 IE10 兼容性视图中运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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