您好,我的 aspx 页面有一些第三方控件,当我将 IE 版本升级到 11 时,这些控件没有出现。直到 IE10 一切都工作正常。
当我像这样更改 IE 的兼容模式时 http://winaero.com/blog/how-to-enable-compatibility-view-in-internet-explorer-11-ie11/
我的控件工作正常。但我不能要求我的最终用户也这样做。
有什么办法可以解决这个问题吗?我尝试在我的页面部分添加以下标签。
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9"/>
但是它不起作用。有人可以告诉我如何通过代码处理这个问题吗?
最佳答案
这只是 IE=9
,而不是 IE=EmulateIE9
:
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
更多信息请参见:How to Use X-UA-COMPATIBLE .
<小时/>当然,我也会考虑迁移到与现代引擎正常工作的新的或不同的控件。引用上面文章:
It is not a best practice to let issues like the example linger as your application is at risk of falling even further behind as web standards progress.
关于javascript - 使用 javascript 更改 IE 兼容模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27499487/