IE9问题:网站在IE9中没有正确呈现,但与IE7一起工作正常 [英] IE9 issues: Site is not properly rendering in IE9 however working good with IE7

查看:104
本文介绍了IE9问题:网站在IE9中没有正确呈现,但与IE7一起工作正常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我的网站(设计用于ASP.NET 2.0并托管在带有IIS 7.0的Windows Server 2008 Ent上) 适用于IE7但不适用于IE9 if 复选框,显示"在兼容性视图中显示Intranet网站"和  "在兼容性中显示所有网站
查看"未选中(兼容性视图设置)(两个复选框都没有选中)。

My site (designed into ASP.NET 2.0 and hosted on Windows Server 2008 Ent with IIS 7.0) is working good with IE7 but not working with IE9 if checkbox that says "Display intranet sites in Compatibility View" and  "Display all websites in Compatibility View" are unchecked (Compatibility View Setting)(both checkbox are not checked).

我尝试过以下选项但未获得成功。

I have tried with following option but not getting success.

我添加了元标记< meta http-equiv =" X-UA-Compatible"含量=" IE = EmulateIE7" >在网页

I have added meta tag <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" > in web page

我还添加了"X-UA-Compatible"在IIS7.0中使用http响应

I have also added "X-UA-Compatible" with http response in IIS7.0

我还添加了

  < ; httpProtocol>

   < customHeaders>

    < clear />

    < add name =" X-UA-Compatible"值= QUOT; IE = EmulateIE7" />&
   < / customHeaders>

  < / httpProtocol>

  <httpProtocol>
   <customHeaders>
    <clear />
    <add name="X-UA-Compatible" value="IE=EmulateIE7" />
   </customHeaders>
  </httpProtocol>

untfig文件。

根据我的理解"在兼容性视图中显示Intranet站点"默认选中,因此Intranet用户可以工作,但互联网用户必须选中"在兼容性视图中显示所有网站"

As per my understanding "Display intranet sites in Compatibility View" is default checked so intranet user are able to work but internet user has to checked "Display all websites in Compatibility View"

我不希望我的用户应该更改IE9中的任何设置。

I dont want that my user should change any setting in the IE9.

有人建议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. 

也可以向我解释这些复选框对于为IE7或更早版本编写的旧代码的影响。

also can some one explain me the impact of these checkboxes with old code written for IE7 or earlier.

推荐答案

content =" IE = edge"
content="IE=edge"


这篇关于IE9问题:网站在IE9中没有正确呈现,但与IE7一起工作正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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