IE8 accepts IE7 class name when using conditional comments

I saw a couple of answers that relate to my questions but cannot solve the problem.

I am trying to use conditional comments for the target IE according to Paul Irish Boilerplate ie

<!--[if lt IE 7 ]> <body class="ie6"> <![endif]--> 
<!--[if IE 7 ]>    <body class="ie7"> <![endif]--> 
<!--[if IE 8 ]>    <body class="ie8"> <![endif]--> 
<!--[if IE 9 ]>    <body class="ie9"> <![endif]--> 
<!--[if gt IE 9]>  <body> <![endif]-->
<!--[if !IE]><!--> <body> <!--<![endif]-->

Doctype is "transitional."

I am testing a site on a local server and looking at the developer toolbar in IE8, the class that is placed in the body is "ie7"

After studying this question, I use the following to try to render in the IE8 standard, hoping that the class placed in the body will be "ie8"

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

This does not work. I also used JS here to tell you which mode IE8 is in. He says the IE8 standards mode.

, IE8 "ie8"? , , "ie7", .

, , , , ? ...

+3
3

, , , IE8. .

F12 , . , . IE8 .

, "" > " " " ".

+4

: " , IE8 , " 7"

JQuery , , , , .:/

+1

IE8 IE7, IE7; , IE7 , , IE7, , , IE7, IE7, ( , IE8 IE7, , IE7 - ).

, , , , - IE8, IE8. , !

, :

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

:

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

'edge' IE , IE8 IE8. , , IE8, ?

, , IE8 IE7, , , IE8 , " IE7 ". ​​Microsoft , , IE8, , , , . , - , : ( , !).
+1

All Articles