라벨이 Conditional Comment인 게시물 표시

[ie]Conditional Comment

<!--[if lte IE 6]><style type="text/css">.ie{ margin-top:30px;margin-bottom:-30px; }</style> <![endif]-->  이런식으로 IE 버전별로 적용을 시킬 수 있음.  XSL 에서는 <xsl:comment><![CDATA[[if lte IE 6]> <style type="text/css">.ie{ margin-top:30px;margin-bottom:-30px; }</style> <![endif]]]></xsl:comment> IE 선택적 적용(Conditional Comments) 부분,  ie에서만 동작기하길 원하는 js나 ie의 css 버그 처리 때문에 사용하는 경우 많음 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 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 ...