When I tested a new asp.net MVC app I created on another machine the layout was incorrect and seemed strange in IE9. When looking at Developer Tools the Mode/Standards were set to older versions and even Compatibility Mode. I changed this back to IE9 and was ok again.
But then when I reopened the site it had set these values back again, is there some default for these that keep overriding or is my app for some reason causing these values to change to older versions?
There is some mechanism, which IE browser family uses to guess what rendering mode would be the best. There is more reading about this topic:
X-UA-Compatible is set to IE=edge, but it still doesn't stop Compatibility Mode
So there is a way how to say, which IE version you are targeting. Put this html tag as the first (really the first) in the
<head>element after the<title>content should be
contain="IE=8"if you are targeting IE 8.0, IE=100 will work for IE 9.0++.For example, I do some investigation on the server side in code to check what version it is, and put the meta related to the browser – as the first element