seevaa.net

  • 본문 바로가기
  • 블로그 내 검색
  • 글 분류 목록
  • 최근 글 목록
  • 기타 블로그메뉴
  • about
  • photolog
  • socialpage
  • taglog
  • guestbook
  • admin

Bookmark - 20090623 : Syntax of Conditional Comments

from bookmark 2009/06/23 13:38 by seevaa Share on Twitter*

Syntax of Conditional Comments

The basic syntax of each type of comment is shown in the following table. The first comment shown is the basic HTML Comment, which is included for the purpose of comparison and to illustrate the different syntax used by each type of conditional comment.

Comment typeSyntax or possible value
standard HTML comment <!-- Comment content  -->
downlevel-hidden <!--[if expression]> HTML <![endif]-->
downlevel-revealed <![if expression]> HTML <![endif]>

The HTML shown inside the syntax block in each of the conditional comments denotes any block of HTML content, including script. Both types of conditional comment use a conditional expression to indicate whether the content inside the comment block should be parsed or ignored.

The conditional expression is formed from a combination of feature, operator, and/or value, as shown in the following table.

ItemExampleComment
IE [if IE] The only currently supported feature is the string "IE", corresponding to Internet Explorer.
value [if IE 7] An integer or floating point numeral corresponding to the version of the browser. Returns a Boolean value of true if the version number matches the browser version. For more information, see Version Vectors.
! [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.
lt [if lt IE 5.5] The less-than operator. Returns true if the first argument is less than the second argument.
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.
gt [if gt IE 5] The greater-than operator. Returns true if the first argument is greater than the second argument.
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.
( ) [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
| [if (IE 6)|(IE 7)] The OR operator. Returns true if any of the subexpressions evaluates to true.
true [if true] Always evaluates to true.
false [if false] Always evaluates to false.



http://msdn.microsoft.com/en-us/library/ms537512(VS.85).aspx

'bookmark' 카테고리의 다른 글

20090907 - Red Rabbit  (2) 2009/09/07
Bookmark - 20090623 : Syntax of Conditional Comments  (10) 2009/06/23
20 HQ Free Flower Photoshop Brushes  (6) 2009/05/26
네이버 숨은 손글씨 찾기 공모전  (11) 2009/05/26
Tag // Conditional Comments, Internet Explorer
받은 트랙백이 없고, 댓글 10개가 달렸습니다.

Trackback Address http://seevaa.net/trackback/308

<< 1 ... 45 46 47 48 49 50 51 52 53 ... 283 >>

Twitter

follow me on Twitter

Delicious

Flickr


Categories

  • all (283)
    • routine (85)
    • images (92)
      • photo (53)
    • blog (53)
      • skin & tip (25)
    • font (12)
    • review (12)
    • bookmark (28)

Recent Posts

  • wedding (14)
  • 티스토리 스킨 (44)
  • 비행기 (8)
  • 그네 (3)
  • 오월 오일 (4)
  • 봄 (6)
  • 같은 꿈 (3)
  • Bookmark - 20100428 :.. (5)
  • 블로그에 소셜페이지를.. (14)
  • Bookmark - 20100415 :.. (1)

Recent Comments

  • [비밀댓글].
  • 07/31
  • 트랙백 철수하려고 하는데...
  • Kata Pro 07/27
  • 저렇게 해보고 싶어지는데...
  • 적별 07/27
  • 사진만 보고 결혼하시는줄...
  • 적별 07/27
  • 정말 잘 쓸게요~~ 심플해...
  • MCFC 07/26

Recent Trackbacks

  • 내 깔끔한 성격과 딱 맞는...
  • 거침없는손길 07/20
  • 블로그 인쇄용 스타일시트...
  • 금메달 아빠의 블로그 07/15
  • 가지마다 쌓인다..
  • 浪漫 古/都/魚/ 보급형사.. 05/20
  • 빨래집게.
  • EastRain's gallery 04/15
  • 탐나는 3단스킨.
  • jodesign studio 03/02

Archive

  • 2010/06 (1)
  • 2010/05 (4)
  • 2010/04 (6)
  • 2010/03 (1)
  • 2010/02 (1)
  • 2010/01 (9)
  • 2009/12 (2)
  • 2009/11 (3)
  • 2009/10 (8)
  • 2009/09 (7)

Links

  • http://clip.seevaa.net
  • http://cyoonk.com
  • http://designsen.net
  • http://hanrss.co.kr
  • http://poty.cafe24.com
  • http://standardmag.org
  • http://startuu.net
  • http://tipography.tistory.com
  • http://trio.co.kr/webrefer/c..
  • http://tum.seevaa.net
  • http://twitter.com/seevaa_
  • http://wing91.tistory.com
  • http://www.raysoda.com/ess
  • http://xylosper.net
subscribe to RSS

T90 Y112 T298,776
subscribe to RSS, valid XHTML, CSS
Powered by Tistory, Designed by seevaa

  • 처음으로
  • 본문 바로가기
  • 블로그 내 검색
  • 글 분류 목록
  • 최근 글 목록
  • 기타 블로그메뉴
seevaa.net - Bookmark - 20090623 : Syntax of Conditional Comments
작성자 : 쎄바(seevaa)
연락처 : seevaa@seevaa.net