【发布时间】: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