How do I force "Compatibility View" ON in IE9 on a page with a proper Doc Type?
16,814
For IE9, add <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
or add <?xml version="1.0" encoding="UTF-8">
as first line in your page. See http://webdesign.about.com/od/metataglibraries/p/x-ua-compatible-meta-tag.htm for details.
Author by
jgv999
Updated on June 16, 2022Comments
-
jgv999 almost 2 years
I have a site that is nearly all standards compliant, and expects to be that way across all browsers. However, I have a specific page on my site that I want to render in a standards compliant way in Firefox, Chrome, Opera, and Safari, but due to a very annoying issue involving Zoom Levels in the Microsoft SSRS Report Viewer 10.0.0.0 control (See here for a more complete description), I need to render the page in Compatibility View mode in IE9.
-
jgv999 over 12 yearsI think this forces on IE9 standards mode, which is exactly the opposite of what I want. I want to force ON compatibility mode (in IE9), even though I have a valid doctype declaration.
-
jgv999 over 12 yearsUnfortunately adding the meta tag does not seem to cause the page to render in compatibility view. It simply renders in IE8 standards mode because my doctype is correct :). - This is the behavior I am trying to turn on automatically on this particular page windows.microsoft.com/en-US/windows7/… if that helps.
-
jgv999 over 12 yearsNever mind, it seems I had to close IE9, each time I was testing a different scenario. Otherwise, it seemed it liked to use the same behavior. Not sure what was going on there. Thanks!