Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 956
jgv999 Avatar asked Sep 24 '11 22:09

jgv999


People also ask

How do I change document mode to ie9 standards?

Change the Document Mode to Internet Explorer 9 Standards and try to view the content again. To change the Document Mode, press F12, click Document Mode: , and then select Internet Explorer 9 Standards."

How do I set up Compatibility View?

Open Internet Explorer, select the Tools button , and then select Compatibility View settings. Under Add this website, enter the URL of the site you want to add to the list, and then select Add.


1 Answers

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.

like image 192
kroonwijk Avatar answered Sep 21 '22 23:09

kroonwijk