Conditional annotation to determine browser version

<!--[if !IE]><!--> Recognized by all except IE<!--<![endif]-->
<!--[if IE]> Recognized by all IEs<![ endif]-->
<!--[if IE 6]> Only IE6 can recognize <![endif]-->
<!--[if lt IE 6]> IE6 and below can recognize <![endif]-- >
<!--[if gte IE 6]> IE6 and above can recognize <![endif]-->
<!--[if IE 7]> Only IE7 can recognize <![endif]-->
< !--[if lt IE 7]> IE7 and below can recognize <![endif]-->
<!--[if gte IE 7]> IE7 and above can recognize <![endif]-->
< !--[if IE 8]> Only IE8 recognizes <![endif]-->
<!--[if IE 9]> Only IE9 recognizes <![endif]-->

 

 

Project example description
! [if !IE] The NOT operator. This is placed immediately in front of the  featureoperator , or  subexpression  to reverse the Boolean meaning of the expression.
NOT operator. This is to put a function , operator , or subexpression immediately in front of it to reverse the meaning of a boolean expression.
lt [if lt IE 5.5] The less-than operator. Returns true if the first argument is less than the second argument. The less-than operator
. Returns true if the first parameter is less than the second parameter.
lte [if lte IE 6] The less-than or equal operator. Returns true if the first argument is less than or equal to the second argument
. Returns true if the first argument is less than or equal to the second argument.
gt [if gt IE 5] The greater-than operator. Returns true if the first argument is greater than the second argument
. Returns true if the first parameter is greater than the second parameter.
gte [if gte IE 7] The greater-than or equal operator. Returns true if the first argument is greater than or equal to the second argument
. Returns true if the first argument is greater than or equal to the second argument.
( ) [if !(IE 7)] Subexpression operators. Used in conjunction with boolean operators to create more complex expressions
. Used in conjunction with Boolean operators to create more complex expressions.
& [if (gt IE 5)&(lt IE 7)] The AND operator. Returns true if all subexpressions evaluate to true
AND operator. Returns true if all subexpressions evaluate to true
| [if (IE 6)|(IE 7)] The OR operator. Returns true if any of the subexpressions evaluates to true. The
OR operator. Returns true if the subexpression evaluates to true.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326540734&siteId=291194637