¡¡¡¡
Ìõ¼þ×¢ÊÍÅжÏä¯ÀÀÆ÷ ³ýIEÍâ¶¼¿Éʶ±ð
ÏîÄ¿ ·¶Àý ˵Ã÷
! [if !IE] The NOT operator. This is placed immediately in front of the feature, operator, or subexpression to reverse the Boolean meaning of the expression.
NOTÔËËã·û¡£ÕâÊǰÚÁ¢¼´ÔÚÇ°ÃæµÄ¹¦ÄÜ£¬²Ù×÷Ô±£¬»ò×Ó±í´ïʽŤת²¼¶û±í´ïʽµÄÒâÒå¡£
lt [if lt IE 5.5] The less-than operator. Returns true if the first argument is less than the second argument.
СÓÚÔËËã·û¡£Èç¹ûµÚÒ»¸ö²ÎÊýСÓÚµÚ¶þ¸ö²ÎÊý£¬Ôò·µ»Øtrue¡£
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.
СÓÚ»òµÈÓÚÔËËã¡£Èç¹ûµÚÒ»¸ö²ÎÊýÊÇСÓÚ»òµÈÓÚµÚ¶þ¸ö²ÎÊý£¬Ôò·µ»Øtrue¡£
gt [if gt IE 5] The greater-than operator. Returns true if the first argument is greater than the second argument.
´óÓÚÔËËã·û¡£Èç¹ûµÚÒ»¸ö²ÎÊý´óÓÚµÚ¶þ¸ö²ÎÊý£¬Ôò·µ»Øtrue¡£
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.
´óÓÚ»òµÈÓÚÔËËã¡£Èç¹ûµÚÒ»¸ö²ÎÊýÊÇ´óÓÚ»òµÈÓÚµÚ¶þ¸ö²ÎÊý£¬Ôò·µ»Øtrue¡£
( ) [if !(IE 7)] Subexpression operators. 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ÔËËã·û¡£Èç¹ûËùÓеÄ×Ó±í´ïʽ¼ÆËã½á¹ûΪtrue£¬·µ»Øtrue
| [if (IE 6)|(IE 7)] The OR operator. Returns true if any of the subexpressions evaluates to true.
ORÔËËã·û¡£·µ»Øtrue£¬Èç¹û×Ó±í´ïʽ¼ÆËã½á¹ûΪtrue¡£
ÕâÑùÓÐЧÊÇÓÐЧ,µ«ÊÇÓÃHTML VALIDATORÀï,±¨´í,ÒòΪÕâ¸ö²»·ûºÏXHTML 1.1µÄ¹æ·¶,
Èç¹û°ÑELSEÓï¾äÈ¥µô,ÔòÕýÈ·.
·½·¨1£º
¼ÓÔØCSS2
www.tswzjs.com ÍÆ¼ö