Friday, January 2, 2009

IE8 Beta 2 and IE7 Compatibility

Recently, the Internet Explorer team released IE 8 beta 2. I tested my existing site with IE8, its not displaying correctly. After some search i fixed using the following document compatible mode.

To specify a document mode for your Web pages, use the meta element to include an X-UA-Compatible http-equiv header in your Web page. The following example specifies Emulate IE7 mode compatibility.

<head>
<!-- Mimic Internet Explorer 7 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>My Web Page</title>
</head>
<body>

<p>Content goes here.</p>
</body>
</html>

The content attribute specifies the mode for the page; to mimic the behavior of Internet Explorer 7, specify IE=EmulateIE7. Specify IE=5, IE=7, or IE=8 to select one of those compatibility modes. You can also specify IE=edge to tell Internet Explorer 8 to use the highest mode available.

The X-UA-compatible header is not case sensitive; however, it must appear in the Web page's header (the HEAD section) before all other elements, except for the title element and other meta elements.

2 comments:

  1. hi its solved my problem. But i think its not permanent solution

    ReplyDelete
  2. I'm impressed, I must say. Rarely do I encounter a blog that's equallу eԁucatіve аnd amusing, and let me tell you, you
    hаve hit the nail on the heaԁ. Τhe isѕue is sοmеthing not enough ρеople are speaking
    intelligentlу abοut. I'm very happy I came across this during my hunt for something relating to this.

    Here is my web blog real estate investment

    ReplyDelete

Yahoo! News: Technology News