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

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

问题描述

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



当单击兼容性视图按钮时,为什么页面不在IE8中运行?我们甚至有IE8兼容性视图吗?



这里是html代码:

 <%@ Page Language =C#AutoEventWireup =trueCodeBehind =WebForm1.aspx.csInherits =WebApplication1.WebForm1%& 
<!DOCTYPE html PUBLIC - // W3C // DTD XHTML 1.0 Transitional // ENhttp://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 =form1runat =server>
< div>
< asp:TextBox ID =TextBox1runat =serverText =Testing>< / asp:TextBox&
< / div>
< / form>
< / body>
< / html>

解决方案

尝试: b

步骤1:关闭兼容性视图并进行检查。




  • 打开Internet Explorer。

  • 点击键盘上的Alt键。现在点击菜单栏中的工具。

  • 选择兼容性视图设置。

  • 删除兼容性视图中显示所有网站的复选标记
    并关闭相容性检视设定视窗。



步骤2:重设浏览器设定并检查。 >



有关详情,请参阅: Microsoft链接


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.

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

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>

解决方案

Try this:

Step 1:Turn off compatibility view and check.

  • 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.

Step 2: Reset internet explorer settings and check.

Fore more information refer : Microsoft link

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

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