javascript - 使用 javascript 更改 IE 兼容模式

标签 javascript asp.net ie-compatibility-mode

您好,我的 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/

相关文章:

c# - 遍历枚举

javascript - 将 ASP.NET session 传递给 jQuery

iframe - iframe 内的 <html> 上的 overflow-x 也会执行 overflow-y

javascript - 是否可以为所有元素动态分配 styleid?

javascript - 在for循环中删除对象

javascript - 文字闪烁问题

IE 7 兼容模式中的 JQuery Unobtrusive 验证导致带有表单的页面出现 "Member Not Found"错误

javascript - HTML5 Canvas : Why are these squares not the same size?

javascript - 无法使用用户控件调用 webmethod

internet-explorer - 如何禁用 IE 中的兼容性 View