How do I force "Compatibility View" ON in IE9 on a page with a proper Doc Type?

jgv999 picture jgv999 · Sep 25, 2011 · Viewed 16.8k times · Source

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.

Answer

kroonwijk picture kroonwijk · Sep 25, 2011

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.