ASP.NET应用程序 - 将IE7兼容模式? [英] ASP.NET App - Set IE7-Compatibility Mode?

查看:145
本文介绍了ASP.NET应用程序 - 将IE7兼容模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是设置IE7兼容模式模式在ASP.NET应用程序来处理IE8的问题simpliest方式吗?是否有可能通过web.config中设置这个还是必须要么在IIS或页面级别设置?

What is the simpliest way to set the IE7-Compatibility Mode mode in an ASP.NET application to deal with IE8 issues? Is it possible to set this via the web.config or must it either be set at the IIS or page level?

推荐答案

添加标题

X-UA兼容:IE = EmulateIE7

在IIS管理器中的网站或应用程序性能的HTTP标头选项卡。在IIS7其HTTP响应头功能。

in the HTTP Headers tab of the site or application properties in IIS manager. In IIS7 its the HTTP Response Headers feature.

您可以将其放置在< system.webServer> 一个web.config的部分。

You can place it the <system.webServer> section of a web.config

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

这篇关于ASP.NET应用程序 - 将IE7兼容模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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