强制内网用户在IE8模式下查看网页,而不是兼容模式 [英] Forcing intranet users to view webpage in IE8 mode, not compatibility mode
本文介绍了强制内网用户在IE8模式下查看网页,而不是兼容模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
覆盖Intranet兼容模式IE8
虽然我正在指定
<meta http-equiv="X-UA-Compatible" content="IE=8" />
但由于IE的在兼容性视图中显示Intranet网站设置,我的应用程序未被查看在IE8中,但在兼容模式下。
But due to IE's "Display intranet sites in Compatibility View" setting, my app isn't being viewed in IE8, but in compatibility mode.
任何人都知道有没有办法围绕这个???
Anyone know if there is a way round this???
推荐答案
这会帮助你。
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或兼容模式) )您可以将用户重定向到一个页面,说明如何设置他/她的浏览器。
我想知道是否有自动脚本来执行此操作?
according to false status (not IE8 or in Compatibilty mode) you can redirect the user to a page that says how to set his/her browser. I wonder to know if there is an automatic script to do this?
这篇关于强制内网用户在IE8模式下查看网页,而不是兼容模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文