IE9始终运行在IE7兼容模式 [英] IE9 always runs in IE7 Compatibility mode

查看:192
本文介绍了IE9始终运行在IE7兼容模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp.net VS2008一个简单的页面,在IE 9上运行时,在兼容性视图按钮可见,点击后网页始终在IE7兼容模式下运行。

I have a simple page in asp.net vs2008, when run in IE 9, the compatibility view button is visible, when clicked, the web page always run in IE7 compatibility mode.

为什么页面不就在IE8上运行,当单击兼容性视图按钮?难道我们甚至有IE8的兼容性视图?

Why the page does not does run in IE8, when compatibility view button is clicked? Do we even have IE8 compatibility view?

下面是HTML code:

Here is the html code:

<%@ 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>

推荐答案

试试这个:

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

Step 1:Turn off compatibility view and check.

  • 开启IE浏览器。
  • 点击键盘上的Alt键。现在,在菜单栏点击工具。
  • 选择兼容性视图设置。
  • 取消勾选​​用于显示所有在兼容性视图网站 并关闭兼容性视图设置窗口。
  • Open internet explorer.
  • Click on Alt key on the keyboard. Now click on Tools in menu bar.
  • Select Compatibility View Settings.
  • Remove the check mark for Display all websites in Compatibility View and close the Compatibility View Settings window.

第2步:重置Internet Explorer设置和检查

Step 2: Reset internet explorer settings and check.

富勒更多信息,请参阅:微软链接

Fore more information refer : Microsoft link

这篇关于IE9始终运行在IE7兼容模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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