When creating a webpage, when the IE 8 browser browses the page, sometimes the document mode defaults to IE7, leading to poor IE8 compatibility and the mode that IE7 should appear.
The solution is as follows:
Available Methods in X-UA-Compatible include:
<Meta http-equiv = "X-UA-Compatible" content = "IE = 5">
<Meta http-equiv = "X-UA-Compatible" content = "IE = 7">
IE5 and IE7 are no longer needed.
<Meta http-equiv = "X-UA-Compatible" content = "IE = 8">
<Meta http-equiv = "X-UA-Compatible" content = "IE = edge">
The last line is in Edge mode, notifying Windows Internet Explorer to display content in the highest level of available mode.
Currently, most websites use <meta http-equiv = "X-UA-Compatible" content = "IE = EmulateIE7"> As IE8 compatibility methods. To avoid page errors under IE8, we recommend that you use IE7 for rendering. That is, directly Add the following code to the meta tag of the header on the page:
<Meta http-equiv = "X-UA-Compatible" content = "IE = 7"/>
In addition
<Meta http-equiv = "X-UA-Compatible" content = "IE = EmulateIE7">
<Meta http-equiv = "X-UA-Compatible" content = "IE = EmulateIE8">
In Emulate mode, more attention is paid to <! DOCTYPE>,
Therefore, <meta http-equiv = "X-UA-Compatible" content = "IE = EmulateIE7"> is the first choice.
Baidu blog moving, blog Source Address: http://hi.baidu.com/confidence68/item/00a435f1f53d937f3d198b01