如何在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