我使用以下标记(在web.config中)强制IE使用最新版本的兼容模式。
<httpProtocol>
<customHeaders>
<add name="X-UA-Compatible" value="IE=edge" />
</customHeaders>
</httpProtocol>
现在我想强制我的解决方案只有一页使用IE7可比性模式。 那可能吗?
请注意:
我将<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
放在该页面中但不起作用。
答案 0 :(得分:0)
其中一种方法是您可以使用HttpModule并专门为EndRequest Event ex中的请求网址处理您的业务
有关详细信息,请查看https://www.c-sharpcorner.com/UploadFile/63e78b/remove-unwanted-http-headers-in-Asp-Net/