如何以编程方式检查“在兼容性视图中显示Intranet站点” [英] How to programmatically check off 'display intranet sites in compatibility view'

查看:228
本文介绍了如何以编程方式检查“在兼容性视图中显示Intranet站点”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的html文件中,下面的代码是顶部的代码:

 <   meta     http-equiv   =  X-UA兼容    content   =  IE = 9; IE = 8; IE = edge,chrome = 1  >  



我的桌面IE版本为11,但我们的内部网IE是在较低版本(IE 8)。如果

 ' 在兼容性视图中显示Intranet站点 选项,我的网页的地图部分变得无法查看。有没有办法覆盖兼容性或以编程方式检查选项?谢谢。



我尝试了什么:



尝试了IE8兼容性但是不成功

解决方案

不,您无法覆盖兼容性设置。如果您的代码可以控制该设置,则存在安全风险。


In my html file, the code below is one the top:

<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=edge,chrome=1">


My desktop IE is in version 11 but our intranet IE is in a lower version (IE 8). In case that the

'Display intranet sites in Compatibility View'

option is checked on, the map part of my webpage becomes not viewable. Is there a way to override the compatibility or programmatically check-off the option? Thanks.

What I have tried:

tried IE8 compatibility but not successful

解决方案

No, you cannot override the compatibility settings. That would be a security risk if your code could control that setting.


这篇关于如何以编程方式检查“在兼容性视图中显示Intranet站点”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆