어제와 똑같이 살면서 다른 미래를 기대하지 말자

<!--[if IE]><![if !IE]> 브라우저 구분 [웹표준] 본문

IT관심분야/HTML&CSS

<!--[if IE]><![if !IE]> 브라우저 구분 [웹표준]

플랜액터 2008. 1. 28. 00:40

  • gt = selects greater than  보다큰 :  if gt IE 6 ->  현재버전 > 6
  • lt = selects less than 보다 작은 :  if lt IE 6 ->  현재버전 < 6
  • gte = selects greater than or equal to 같거나 큰  :  if gte IE 6 ->  현재버전 >= 6
  • lte = selects less than or equal to 같거나 작은  :  if lte IE 6 ->  현재버전 <= 6
  • 그밖에 ! 
    1. To select exclusivly for any  non IE - use " IE  & !IE " for a downlevel-revealed within a downlevel-hidden CC

      <!--[if IE]><![if !IE]><![endif]-->  html <!--[if IE]><![endif]><![endif]-->

    2. To select for  IE 5.01 only - use " IE 5.0 " or "lte IE 5.0" or "!gt IE 5.0" or "lt IE 5.5000" or "!gte IE 5.5000"

      <!--[if IE 5.0]>  html <![endif]-->

    3. To select for  IE 5.5 or 6 or 7.0 - use " !IE 5.0 " or "!lte IE 5.0" or "gt IE 5.0" or "!lt IE 5.5000" or "gte IE 5.5000" (all less specific)

      <!--[if !IE 5.0]>  html <![endif]-->

    4. To select for  IE 5.5 only - use " IE 5.5000 "

      <!--[if IE 5.5000]>  html <![endif]-->

    5. To select for  IE 5.01 or 6 or 7.0 - use " !IE 5.5000 " (less specific)

      <!--[if !IE 5.5000]>  html <![endif]-->

    6. To select for  IE 6 only - use " IE 6 "

      <!--[if IE 6]>  html <![endif]-->

    7. To select for  IE 5.01 or 5.5 or 7.0 - use " !IE 6 " (less specific)

      <!--[if !IE 6]>  html <![endif]-->

    8. To select for  IE 7.0 only - use " IE 7.0 "; or less specific "!lte IE 6" or "gt IE 6" or "!lt IE 7.0" or "gte IE 7.0" or "!lt IE 7" or "IE 7" or "gte IE 7"

      <!--[if IE 7.0]>  html <![endif]-->

    9. To select for  IE 5.01 or 5.5 or 6 - use " lte IE 6 " or "!gt IE 6" or "lt IE 7.0" or "!gte IE 7.0" or "lt IE 7" or "!gte IE 7"; or less specific "!IE 7.0" or "!IE 7"

      <!--[if lte IE 6]>  html <![endif]-->

    10. To select for  IE 5.01 or 5.5 - use " IE 5 " or "lte IE 5" or "!gt IE 5" or "lte IE 5.5000" or "!gt IE 5.5000" or "lt IE 6" or "!gte IE 6"

      <!--[if IE 5]>  html <![endif]-->

    11. To select for  IE 6 or 7.0 - use " !IE 5 " or "!lte IE 5" or "gt IE 5" or "!lte IE 5.5000" or "gt IE 5.5000" or "!lt IE 6" or "gte IE 6" (all less specific)

      <!--[if !IE 5]>  html <![endif]-->

    12. To select for  IE 5.01 or 6 - use " lte IE 6  & !IE 5.5000 " or, more general, any of 3 pairs ({"lt IE 7", "!IE 7", "lte IE 6"},{"!IE 5.5000"}) for a downlevel-revealed within a downlevel-hidden CC

      <!--[if lte IE 6]><![if !IE 5.5000]>  html <![endif]><![endif]-->

    13. To select for  IE 5.01 or 7.0 - use " !IE 6  & !IE 5.5000 " (less specific) for a downlevel-revealed within a downlevel-hidden CC

      <!--[if !IE 6]><![if !IE 5.5000]>  html <![endif]><![endif]-->

    14. To select for  IE 5.5 or 6 - use " lte IE 6  & gte IE 5.5000 " or, more general, any of 9 pairs ({"lt IE 7", "!IE 7", "lte IE 6"},{"gt IE 5.0", "!IE 5.0", "gte IE 5.5000"}) for a downlevel-revealed within a downlevel-hidden CC

      <!--[if lte IE 6]><![if gte IE 5.5000]>  html <![endif]><![endif]-->

    15. To select for  IE 5.5 or 7.0 - use " !IE 6  & gt IE 5.0 " or, more general, any of 3 less specific pairs ({"!IE 6"},{"gt IE 5.0", "!IE 5.0", "gte IE 5.5000"}) for a downlevel-revealed within a downlevel-hidden CC

      <!--[if !IE 6]><![if gt IE 5.0]>  html <![endif]><![endif]-->

    16. To select for  IE 5.01 or 5.5 or 6 or 7.0 - use " lte IE 7.0 "; or less specific "gte IE 5" or "gte IE 5.0" or "lte IE 7" or "IE"; it seems not feasible to use any negations for this selection.

      <!--[if lte IE 7.0]>  html <![endif]-->


    - 참고 링크
    http://haco.tistory.com/1948
    http://msdn2.microsoft.com/en-us/library/ms537512.aspx
  • Comments