seevaa.net

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

Bookmark - 20090623 : Syntax of Conditional Comments

from Bookmarks 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

'Bookmarks' 카테고리의 다른 글

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 ... 81 82 83 84 85 86 87 88 89 ... 319 >>

Categories

  • All (319)
    • Life Style (103)
    • Images (94)
      • Photo (94)
    • Web Standard (10)
      • HTML (0)
      • CSS (3)
      • JavaScript (7)
    • Application Programing (8)
      • java/jsp (8)
    • DataBase (5)
      • Oracle (3)
      • MySQL (0)
    • Programing Tool (2)
      • Eclipse (2)
    • Tistory (53)
      • Skin (25)
    • Fonts (12)
    • Bookmarks (31)

Recent Posts

  • 페이지 속 특정부분만.. (3)
  • 링크 요소(a element)의..
  • Image Thumbnail 만들기
  • 정규식 표현으로 필드값..
  • 파라미터 관련 유틸
  • JSTL <functions>
  • Spring - ServletReques..
  • Oracle & sqlplus 설정
  • 샤방샤방 세차장 (5)
  • XMLHttpRequest Object

Recent Comments

  • 스킨 잘 쓰겠습니다^^ 감...
  • mespect 21:45
  • 답변이 없네요;;.
  • Liebesleid 02/02
  • 오른쪽을 1000px늘리고 싶...
  • 효니 01/31
  • [비밀댓글].
  • 01/31
  • [비밀댓글].
  • 01/31

Recent Trackbacks

  • ㅇ.
  • bbonggle.Go 01/26
  • [블로그] 웹폰트로 개성있...
  • 512 2011
  • [iPhone4] 목련.
  • FotoZone 2011
  • 티스토리를 시작하며...
  • Leave Traces 2011
  • 간단하게 트위터 페이지...
  • YIYUNI.com* 2011

Archive

  • 2011/12 (2)
  • 2011/10 (5)
  • 2011/09 (1)
  • 2011/06 (1)
  • 2011/05 (1)
  • 2011/04 (11)
  • 2011/03 (10)
  • 2011/02 (1)
  • 2010/11 (4)
  • 2010/09 (1)

Links

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

T28 Y261 T365,305
subscribe to RSS, valid XHTML, CSS
Powered by Tistory, Designed by seevaa

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