强制IE10在IE10兼容性视图中运行? [英] Force IE10 to run in IE10 Compatibility View?
问题描述
我有一个在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?
更新
我需要提一下,我已经尝试了以下所有的doctypes,但没有一个能够正常工作。我认为在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
- 打开IE 10
- 按ALT键以显示IE菜单栏
- 单击工具菜单
- 单击兼容性视图设置。
- 点击复选框;在兼容性视图中显示所有网站
或 - 仅将所需网站添加到兼容性视图
- Open IE 10
- Press the ALT Key to bring up the IE Menubar
- Click on the Tools menu
- Click on compatibility view setting.
- Clicks check the box; display all the websites in compatibility view or
- Add only the desired websites to the compatibility view
如下图所示。然后应该使用IE 10兼容性视图打开网站。
As shown in the image below. The website should then open up with IE 10 Compatibility view.
这篇关于强制IE10在IE10兼容性视图中运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!