When making a Web page, IE8 browser when browsing the page, sometimes the document mode default is IE7, resulting in IE8 compatibility is not very good. There is a pattern that IE7 should appear.
The workarounds are as follows:
The methods available in X-ua-compatible are:
<meta http-equiv= "x-ua-compatible" content= "ie=5" >
<meta http-equiv= "x-ua-compatible" content= "ie=7" >
IE5 and IE7 are now out of use.
<meta http-equiv= "x-ua-compatible" content= "ie=8" >
<meta http-equiv= "x-ua-compatible" content= "Ie=edge" >
The last line is the edge mode. Notifies Windows Internet Explorer to display content in the highest-level available mode.
Most sites now use <meta http-equiv= "x-ua-compatible" content= "Ie=emulateie7" > as a compatible method for IE8.
In order to avoid making the page under IE8 error, it is recommended that the IE8 be rendered directly using IE7.
That is, add the following code directly to the META tag of the header of the page, for example:
<meta http-equiv= "x-ua-compatible" content= "ie=7"/>
Plus
<meta http-equiv= "x-ua-compatible" content= "Ie=emulateie7" >
<meta http-equiv= "x-ua-compatible" content= "IE=EMULATEIE8" >
While using, emulate mode is more important to <! Doctype>,
So for now, <meta http-equiv= "x-ua-compatible" content= "Ie=emulateie7" > as the first choice.
Baidu blog Move, blog source address: http://hi.baidu.com/confidence68/item/00a435f1f53d937f3d198b01
X-ua-compatible IE Browser Default document mode settings