我正在使用<meta http-equiv="X-UA-Compatible" content="IE=edge">
在head
标签。但是,当我在 IE9 上运行应用程序时,它使用的是浏览器模式:IE9 兼容 View 。
我希望我的应用程序仅使用浏览器模式:IE9,而不是兼容 View 。
最佳答案
我意识到我在这方面有点晚了,但这是我使用过的并且它对我有用:
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
确保这是文档头部的FIRST元标记(我将它直接放在开始标记之后)。
在这里找到了这个解决方案:http://technicalstuffhopefullyuseful.blogspot.com/2013/09/force-internet-explorer-compatibility.html
关于internet-explorer - 强制 IE9 使用浏览器模式而不是兼容模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11761037/