Make IE9 emulate IE8. Possible?

Is this even possible? I tried adding this to the page but didn’t change anything.

<meta http-equiv="X-UA-Compatible" content="IE=8"> 

UPDATE I am trying to do this because there are some CSS issues in IE9 on our site that are not displayed in IE8.

thank

+47
html browser internet-explorer x-ua-compatible ie8-compatibility-mode
Jan 27 2018-11-11T00: 00Z
source share
4 answers

You can use document compatibility mode to do this, and this is what you tried. However, what should be noted: it should be displayed on the web page heading (HEAD section) in front of all other elements, except for the name of the element and other meta elements. Hope this was a question. Also, The X-UA-compatible header is not case sensitive. See http://msdn.microsoft.com/en-us/library/cc288325%28v=vs.85%29.aspx#SetMode

Edit: in case something happens to kill the msdn link, here is the content:

Specifying Document Compatibility Modes

You can use document modes to control how Internet Explorer interprets and displays your web page. To specify a specific document for your web page, use the meta element to include an X-UA-compatible title on your web page, as shown below Example.

 <html> <head> <!-- Enable IE9 Standards mode --> <meta http-equiv="X-UA-Compatible" content="IE=9" > <title>My webpage</title> </head> <body> <p>Content goes here.</p> </body> </html> 

If you view this web page in Internet Explorer 9, it will display in IE9 mode.

The following example shows EmulateIE7 mode.

 <html> <head> <!-- Mimic Internet Explorer 7 --> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" > <title>My webpage</title> </head> <body> <p>Content goes here.</p> </body> </html> 

In this example, the X-UA-Compatible header directs Internet Explorer to mimic the behavior of Internet Explorer 7 when determining how a web page displays. This means that Internet Explorer will use (or lack thereof) to select the appropriate type of document. Since this page does not contain, the example will be displayed in IE5 (Quirks) mode.

+64
Feb 17 '11 at 11:10
source share

Yes. Recent versions of IE (IE8 or higher) allow you to customize this. Here's how:

  • Launch Internet Explorer.
  • Click "Tools," then click "Developer Tools." Or just press F12 .

This should open the Developer Tools window. There are two menu items in this window that are of interest:

  • Browser mode. This parameter defines the value of the user agent header sent for each request.
  • Document mode. This setting determines how the rendering engine renders the page.

More details at http://blogs.msdn.com/b/ie/archive/2010/06/16/ie-s-compatibility-features-for-site-developers.aspx

+26
Jan 27 2018-11-11T00:
source share

1st item without any hard refunds. Hard return I think = an empty node / element in the DOM, which becomes the first element to disable the doc compatibility meta tag.

+2
Sep 12 '11 at 10:07
source share

On the client side, you can add and remove websites to display in the compatibility view from the IE Compatibility View Settings window:

Tools-> Compatibility View Options

+2
Nov 26 '12 at 10:55
source share



All Articles