IE9 always runs in IE7 Compatibility mode

梦想的初衷 提交于 2020-02-05 08:43:44

问题


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>


回答1:


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



来源:https://stackoverflow.com/questions/22722381/ie9-always-runs-in-ie7-compatibility-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!