可能重复:
覆盖 Intranet 兼容模式 IE8
虽然我指定
<meta http-equiv="X-UA-Compatible" content="IE=8" />
但是由于 IE 的“在兼容性视图中显示 Intranet 站点”设置,我的应用程序没有在 IE8 中查看,而是在兼容模式下查看。
有人知道有没有办法解决这个问题???
可能重复:
覆盖 Intranet 兼容模式 IE8
虽然我指定
<meta http-equiv="X-UA-Compatible" content="IE=8" />
但是由于 IE 的“在兼容性视图中显示 Intranet 站点”设置,我的应用程序没有在 IE8 中查看,而是在兼容模式下查看。
有人知道有没有办法解决这个问题???
这将对您有所帮助。
if (window.navigator.appName == "Microsoft Internet Explorer"){
// This is an IE browser. What mode is the engine in?
if (document.documentMode==8) // IE8
{
alert('IE8')
}
else
{
alert('Not IE8 or in Compatibilty mode');
}
}
根据错误状态(不是 IE8 或兼容模式),您可以将用户重定向到说明如何设置他/她的浏览器的页面。我想知道是否有一个自动脚本可以做到这一点?