如何在IE 8模式下强制运行浏览器IE 11? [英] How to forcefully run the browser IE 11 in IE 8 mode?
本文介绍了如何在IE 8模式下强制运行浏览器IE 11?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在IE 8模式下强制运行浏览器IE 11?
我在Global.asax文件中尝试了以下代码。
How to forcefully run the browser IE 11 in IE 8 mode?
I tried below code in Global.asax file.
public void Application_EndRequest(object sender, EventArgs e)
{
//Send compatibility header if IE 11 is used
if (Request.RawUrl.ToLower().Contains(".aspx") && Request.Browser.MajorVersion == 11)
{
Response.AddHeader("X-UA-Compatible", "IE=EmulateIE8");
//Response.Write("TEST");
}
}
以下尝试设置IE 11浏览器
Also tried below way to set IE 11 Browser
<httpProtocol>
<customHeaders>
<clear />
<add name="X-UA-Compatible" value="IE=EmulateIE8" />
</customHeaders>
</httpProtocol>
推荐答案
Hi,
You can Press F12 the set edge mode 8
这篇关于如何在IE 8模式下强制运行浏览器IE 11?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文