IE hack is often used in CSS layout. If IE plays a very important role!
What does if IE mean? The following lists some common hack control statements in CSS.
As the if condition annotation of IE, you can use hack instead of if IE in CSS for W3C verification.
<! -- [If! IE]> All except Ie can be recognized <! [Endif] -->
<! -- [If IE]> all IE identifiable <! [Endif] -->
<! -- [If IE 5.0]> only ie5.0 can recognize <! [Endif] -->
<! -- [If IE 5]> only ie5.0 and ie5.5 can be recognized <! [Endif] -->
<! -- [If gt ie 5.0]> both ie5.0 and ie5.0 can be recognized <! [Endif] -->
<! -- [If IE 6]> only IE6 can recognize <! [Endif] -->
<! -- [If lt IE 6]> versions earlier than IE6 and IE6 are recognizable <! [Endif] -->
<! -- [If gte ie 6]> IE6 and IE6 and later versions can be recognized <! [Endif] -->
<! -- [If IE 7]> only IE7 is recognizable <! [Endif] -->
<! -- [If lt IE 7]> versions earlier than IE7 and IE7 are recognizable <! [Endif] -->
<! -- [If gte ie 7]> IE7 and IE7 versions can be identified <! [Endif]->
LTE: Short for less than or equal to, that is, less than or equal.
LT: Short for less than, that is, less.
GTE: Short for greater than or equal to, that is, greater than or equal.
GT: Short for greater than, that is, greater.
! : It means not equal to, which is the same as the non-equal identifier in JavaScript.