HTML5 statement compatible with IE <! DOCTYPE html> <! -- [If IE]> <meta http-equiv = "X-UA-Compatible" content = "IE = 8"/> <! [Endif] --> <! -- [If IE 7]> <meta http-equiv = "X-UA-Compatible" content = "IE = 7"/> <! [Endif] --> <! -- [If IE 6]> <meta http-equiv = "X-UA-Compatible" content = "IE = 6"/> <! [Endif] --> about X-UA-Compatible
Currently, most websites use
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >
As a compatible method of IE8, although Microsoft has made a huge step towards the standard, it is not clear that IE8 still has a series of strange rendering phenomena.
Who makes IE6 so much? Maybe we can have more time to care about IE8 after 2014, instead of IE6 or IE7.
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" >
<meta http-equiv="X-UA-Compatible" content="IE=8" >
<meta http-equiv="X-UA-Compatible" content="IE=edge" >
The last line always displays the webpage in the latest IE version mode.
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>
So for the time being
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >
Is the first choice.
Let Microsoft scan for its sins.
<! DOCTYPE html> <! -- [If IE]> <meta http-equiv = "X-UA-Compatible" content = "IE = 8"/> <! [Endif] --> <! -- [If IE 7]> <meta http-equiv = "X-UA-Compatible" content = "IE = 7"/> <! [Endif] --> <! -- [If IE 6]> <meta http-equiv = "X-UA-Compatible" content = "IE = 6"/> <! [Endif] --> about X-UA-Compatible
Currently, most websites use
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >
As a compatible method of IE8, although Microsoft has made a huge step towards the standard, it is not clear that IE8 still has a series of strange rendering phenomena.
Who makes IE6 so much? Maybe we can have more time to care about IE8 after 2014, instead of IE6 or IE7.
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" >
<meta http-equiv="X-UA-Compatible" content="IE=8" >
<meta http-equiv="X-UA-Compatible" content="IE=edge" >
The last line always displays the webpage in the latest IE version mode.
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>
So for the time being
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >
Is the first choice.
Let Microsoft scan for its sins.