http://www.quirksmode.org/css/condcom.html
<p class="accent"> <!--[if IE]> According to the conditional comment this is IE<br /> <![endif]--> <!--[if IE 6]> According to the conditional comment this is IE 6<br /> <![endif]--> <!--[if IE 7]> According to the conditional comment this is IE 7<br /> <![endif]--> <!--[if IE 8]> According to the conditional comment this is IE 8<br /> <![endif]--> <!--[if IE 9]> According to the conditional comment this is IE 9<br /> <![endif]--> <!--[if gte IE 8]> According to the conditional comment this is IE 8 or higher<br /> <![endif]--> <!--[if lt IE 9]> According to the conditional comment this is IE lower than 9<br /> <![endif]--> <!--[if lte IE 7]> According to the conditional comment this is IE lower or equal to 7<br /> <![endif]--> <!--[if gt IE 6]> According to the conditional comment this is IE greater than 6<br /> <![endif]--> <!--[if !IE]> --> According to the conditional comment this is not IE<br /> <!-- <![endif]--> </p>
Note the special syntax:
gt
: greater thanlte
: less than or equal to
'HTML & Script' 카테고리의 다른 글
bootstrap IE (0) | 2012.04.04 |
---|---|
12 Principles For Keeping Your Code Clean (0) | 2012.04.01 |
http://code.google.com/p/ie7-js/ (0) | 2012.03.31 |
iscroll로 overflow scroll 효과 내기 (0) | 2012.03.31 |
REPLACING THE -9999PX HACK (NEW IMAGE REPLACEMENT) (0) | 2012.03.31 |