与IE9的兼容性问题:如果我在兼容性视图设置中取消选中复选框,则网站与IE7兼容,但在IE9中不显示。 [英] Compatibility issue with IE9: Site is IE7 compatible but not displaying in IE9 if I unchecked checkboxes in Compatibility View Setting.
问题描述
嗨这是Atul,
我有关于IE9兼容性的问题。
I have an issue regarding IE9 compatibility.
我的网站在IE7和IE8上运行良好但是没有与IE9一起工作。如果 我的用户更改了
My site is working good with IE7 and IE8 but not working with IE9. If my user change
"兼容性视图设置" - >
"Compatibility View Setting" ->
选中 ""在兼容性视图中显示Intranet网站"对于Intranet用户
Checked either "Display intranet sites in Compatibility View" for intranet user
或
"在兼容性视图中显示所有网站"对于互联网用户
"Display all websites in Compatibility View" for internet user
带有元标记("< meta http-equiv =" X-UA-Compatible" content =" IE = EmulateIE7">")IE9显示正确。
with meta tag ("<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >") IE9 display properly.
我已经阅读了他们所说的许多博客,将这个元标记放在< head>的第一行。但是,此标记仅适用于"兼容性视图设置"中的上述更改。
I have read many of the blogs they all said to put this meta tag at first line in <head> tag however this is only working with above changes in "Compatibility View Setting".
我不希望我的用户更改IE中的任何设置。
I dont want that my user should change any setting in the IE.
有人可以建议approch以编程方式(javascript / asp.net)执行此操作(如果可能或其他任何方式)。
Can someone suggest the approch to do it programatically (javascript/asp.net) if possible or any other way to achieve this.
推荐答案
您好,
兼容性视图也可以通过在服务器响应中添加x-ua标头来设置。
compatibility view can also be set by adding an x-ua header to the server response.
可能您使用的是userAgent嗅探或旧版本的jQuery或Spry框架......
Probably though you are using userAgent sniffing or an old version of jQuery or Spry frameworks...
或
工具> Internet选项>高级选项卡,检查"使用兼容性视图自动恢复渲染错误"。
Tools>Internet Options>Advanced tab, check "automitically recover from rendering errors with Compatibility View".
在本论坛中提问时,如果您可以为您的网站提供链接,则会有所帮助....否则我们的答案只是猜测。
when asking a question in this forum it is helpful if you can supply a link for your website.... otherwise our answers are just guesses.
这篇关于与IE9的兼容性问题:如果我在兼容性视图设置中取消选中复选框,则网站与IE7兼容,但在IE9中不显示。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!