How to get IE8 to work in compatibility mode WITHOUT a button click

Recently I was asked to help my city with its website. What I found when I went there, whether they were using web expressions. When they viewed the page as part of the program, it looked beautiful when you opened it in any other browser, although the layout all moved to each other, and everything was in the know.

They don't want to start anything, so the only thing I'm trying to do is get IE 8 to display it as IE 7.

I have been doing research for some time, and I know about a line of code, and I tried this, it even works, however, they don’t like the idea of ​​forcing their users to use the button. Is there a way for IE8 to go directly to compatibility mode without clicking the user button on the compatibility button?

I also know about documentMode, can it be set to = 7 in javascript? Will this change anything?

+3
source share
1 answer

If you haven’t already done so, try putting it in the header of your HTML:

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

Additional information: http://msdn.microsoft.com/en-us/library/cc288325(v=vs.85).aspx

+3
source

All Articles