默认情况下,在IE11上以IE7模式打开应用程序
当我打开服务器上部署的应用程序时,IE模式将设置为默认IE7(我在开发人员工具中签入).我需要在打开时将其作为IE边缘模式打开.此问题不是特定于浏览器的,而是特定于代码的,因为所有其他应用程序都可以在IE11模式下正常工作.
When I am opening my application deployed on server, the IE mode is getting set to default IE7 (I checked in developer tools). I need when I open, it should open as IE edge mode. This issue is not browser specific but code specific as all other apps are working fine as IE11 mode.
我还在设置兼容模式:
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"></meta>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
我还需要进行其他更改吗?
Do I need to make any other changes?
在IE11中打开localhost或"Intranet"站点时,它将自动假定您要在IE7模式下进行渲染(上帝知道原因).有一个设置可以在IE中将其关闭.在此处引用 Internet Explorer 11禁用显示Intranet"兼容性视图中的网站"通过元标记不起作用
When you open localhost or "intranet" sites in IE11 it will automatically assume you want to render it in IE7 mode (God knows why). There is a setting to turn this off in IE. Referenced here Internet Explorer 11 disable "display intranet sites in compatibility view" via meta tag not working