![](/img/trans.png)
[英]Disable Enterprise Mode in IE11 within the code and force the broser to render site in Default Mode
[英]Is there any way to force the browser to NOT use Enterprise Mode in IE11?
我正在尝试开发一个使用与IE7 / 8不兼容的功能的网站,但我们都使用公司标准浏览器(IE11)强制我的页面使用企业模式(使用IE7 / 8进行有效渲染)。
我见过的所有内容都谈到将其修复到公司内部的高级“站点列表”,或者使浏览器不在本地使用企业模式(通过修改注册表项)。 一个内部建议的方法是使用元标记:
<meta http-equiv="X-UA-Compatible" content="IE=11" />
......但它没有用。
有什么办法可以强制客户端,从服务器端, 不使用企业模式?
注意:我们正在使用Websphere 8.5服务器。
这对我有用 - 通过修改应用程序的web.config文件(如果您使用IIS作为您的Web服务器)强制来自IIS的X-UA兼容标头。
<system.webServer>
<httpProtocol>
<customHeaders>
<remove name="X-UA-Compatible" /> <!-- in case it was already set -->
<add name="X-UA-Compatible" value="IE=edge" />
</customHeaders>
</httpProtocol>
</system.webServer>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.