【问题标题】:IE9 always runs in IE7 Compatibility modeIE9 始终在 IE7 兼容模式下运行
【发布时间】:2014-05-08 11:29:11
【问题描述】:

我在asp.net vs2008中有一个简单的页面,在IE 9下运行时,兼容性视图按钮是可见的,点击后,网页总是以IE7兼容模式运行。

为什么当点击兼容性视图按钮时页面不能在 IE8 中运行?我们还有 IE8 兼容性视图吗?

这里是html代码:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:TextBox ID="TextBox1" runat="server" Text="Testing"></asp:TextBox>
    </div>
    </form>
</body>
</html>

【问题讨论】:

  • 你在公司吗?他们可能通过组策略强制 Internet Explorer 在兼容性视图中在本地运行。
  • 对了,你的图片清楚的写着IE9兼容视图,IE7标准模式。

标签: asp.net .net web cross-browser internet-explorer-9


【解决方案1】:

试试这个:

第 1 步:关闭兼容性视图并检查。

  • 打开 Internet Explorer。
  • 单击键盘上的 Alt 键。现在点击菜单栏中的工具。
  • 选择兼容性视图设置。
  • 删除在兼容性视图中显示所有网站的复选标记 并关闭兼容性视图设置窗口。

第 2 步:重置 Internet Explorer 设置并检查。

更多信息请参考:Microsoft link

【讨论】:

    最近更新 更多