ASP.NET 应用程序在 IE7 模式下加载?
ASP.NET application loads in IE7 mode?
我目前遇到了一个问题,我已经创建了一个 ASP.NET Web 表单应用程序,但由于某些原因在调试时它在 IE7 中加载它。
<html>
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
HOLAAAAAAAAAA
</div>
</form>
</body>
</html>
IE7 even though I have IE11 installed.
编辑:如果我添加它在 IE11 中加载但我强制它但我没有解决问题。
您的 IE 策略很可能将其设置为默认使用 IE7 兼容模式,这在大型企业环境中尤其如此,他们有无法更新的旧应用程序需要 运行就像在 IE7 中一样。
要在 <head></head>
标签中解决这个问题,请添加:
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
边缘模式告诉 Windows Internet Explorer 以可用的最高模式显示内容,因此 IE 11 为 11,IE 8 为 8,依此类推。
我目前遇到了一个问题,我已经创建了一个 ASP.NET Web 表单应用程序,但由于某些原因在调试时它在 IE7 中加载它。
<html>
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
HOLAAAAAAAAAA
</div>
</form>
</body>
</html>
IE7 even though I have IE11 installed.
编辑:如果我添加它在 IE11 中加载但我强制它但我没有解决问题。
您的 IE 策略很可能将其设置为默认使用 IE7 兼容模式,这在大型企业环境中尤其如此,他们有无法更新的旧应用程序需要 运行就像在 IE7 中一样。
要在 <head></head>
标签中解决这个问题,请添加:
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
边缘模式告诉 Windows Internet Explorer 以可用的最高模式显示内容,因此 IE 11 为 11,IE 8 为 8,依此类推。