CSS

CSS와 관련된 팁이 있는 곳입니다. 좋은 자료 공유해 주세요.
  • 웹미니 한줄 전광판 영역 입니다.
글 수 123

0

조회 수 : 7984 신고 : 0

profile
작성자 : title: [ani]깜빡이는 표정빽짱구
포인트 : 56933 | 레벨 : 25
미리보기 :  

조건 주석문은 윈도우용 IE5 가 나오면서 선보인 기능으로서 그 이후에 나온 윈도우용 모든 버전에서 지원하고 있습니다.
특정 스타일시트 IE5 이상 브라우저에 적용하려면 다음과 같은 코드를 (X)html 문서 헤드 부분에 넣으면 됩니다.

<!– [if IE]
<style type=”text/css”>
@import (”style.css”);
</style>
–>


위와 같이 할경우 IE5 이상 버전에서는 style.css 를 읽어드리고, 나머지 브라우저에서는 주석문으로 인식합니다.
IE5 같은 특정 버전의 브라우저가 대상이 되도록 할려면 아래와 같은 방법으로 할 수 있습니다.

<!– [if IE 5]
<style type=”type/css”>
@import (”style.css”);
</style>
–>


5.5 이상 브라우저를 대상으로 할려면

<!– [if gte IE 5.5000]

IE5와 5.5를 대상으로 할려면

<!– [if it IE 6]

위와 같은 기법들은 아주 잘 동작하면서 상대적으로 외우기도 쉽습니다. 단 이 주석문은 css 파일이 아니라 html에 써야 합니다. 그러므로 특정 브라우저를 더이상 지원하지 않게 될 경우 모든 페이지마다 해당 주석문을 제거해야 합니다.


<p><!--[if IE]>
According to the conditional comment this is Internet Explorer<br />
<![endif]-->
<!--[if IE 5]>
According to the conditional comment this is Internet Explorer 5<br />
<![endif]-->
<!--[if IE 5.0]>
According to the conditional comment this is Internet Explorer 5.0<br />
<![endif]-->
<!--[if IE 5.5]>
According to the conditional comment this is Internet Explorer 5.5<br />
<![endif]-->
<!--[if IE 6]>
According to the conditional comment this is Internet Explorer 6<br />
<![endif]-->
<!--[if IE 7]>
According to the conditional comment this is Internet Explorer 7<br />
<![endif]-->
<!--[if gte IE 5]>
According to the conditional comment this is Internet Explorer 5 and up<br />
<![endif]-->
<!--[if lt IE 6]>
According to the conditional comment this is Internet Explorer lower than 6<br />
<![endif]-->
<!--[if lte IE 5.5]>
According to the conditional comment this is Internet Explorer lower or equal to 5.5<br />
<![endif]-->
<!--[if gt IE 6]>
According to the conditional comment this is Internet Explorer greater than 6<br />
<![endif]-->
</p>
태그
profile 글쓴이 빽짱구

단점이 없는 사람은 장점도 거의 없다 - 에이브러햄 링컨

엮인글 :
https://web.webmini.net/css/19005/6c0/trackback
소중한 댓글 부탁드립니다.
추천수 10단위당 메달이 1개씩 노출되고, 추천수에 따라 배경색이 변하며, 일정수의 추천수를 받을시 BEST 아이콘이 붙게됩니다.
추천수에 따른 배경색 보기 본문으로 바로가기
  • 추천수 50개이상
  • 추천수 30개이상
  • 추천수 20개이상
  • 추천수 10개이상
  • 추천수 3개이상
닫기

댓글 '1'

스마일조아 (118618)

2009.11.05 11:22:55

정말 좋은 정보 감사합니다.
List of Articles
번호 제목 글쓴이 날짜 추천 수 조회 수sort
공지 Cascading Style Sheets (CSS3) file title: [ani]깜빡이는 표정빽짱구 2010-06-29 1 32639
공지 CSS 용량을 줄여주는 사이트 file [7] title: [ani]깜빡이는 표정빽짱구 2010-05-13 1 23177
공지 css 팁에 관련해서... [1] title: [ani]깜빡이는 표정빽짱구 2007-11-30 1 44340
83 CSS | 표(table) 에도 링크를 걸자 H1N1 2009-11-30   6682
82 IE에서 letter-spacing:-1px; 적용시 br 태그 버그 file [4] title: [ani]깜빡이는 표정빽짱구 2009-10-23   6754
81 repeat title: [ani]깜빡이는 표정빽짱구 2007-10-01   6763
80 css텍크닉 [3] H1N1 2009-12-01   6777
79 스크롤바가 나오지 않게 하는 소스 [1] H1N1 2009-11-30   6808
78 CSS3로 만든 예제들 title: [ani]깜빡이는 표정빽짱구 2010-12-07   6808
77 best of best 웹폰트 두개적용하기 title: [ani]깜빡이는 표정빽짱구 2004-02-17 47 6822
76 best of best 스크롤바 색상 만들기 file title: [ani]깜빡이는 표정빽짱구 2006-03-11 21 6826
75 룰오버버튼 스타일시트로 간단하게 [1] H1N1 2009-11-30   6961
74 best of best 외부스타일시트 불러오기 [2] title: [ani]깜빡이는 표정빽짱구 2005-12-21 27 6973
73 CSS 속성 순서 file [2] title: [ani]깜빡이는 표정빽짱구 2011-02-15   7004
72 텍스트 밑에 점선넣기 [2] H1N1 2009-11-30   7098
71 익스6에서 CSS호출을 못할때 title: [ani]깜빡이는 표정빽짱구 2010-11-11   7116
70 소형 대문자 small cap file [1] title: [ani]깜빡이는 표정빽짱구 2009-10-17   7241
69 best of best 웹폰트 적용하기 [2] title: [ani]깜빡이는 표정빽짱구 2004-02-11 59 7262
68 세로 스크롤바 생기게 하기 title: [ani]깜빡이는 표정빽짱구 2011-06-16   7319
67 리스트 태그속성 H1N1 2009-12-01   7364
66 css를 이용하여 원으로 된 paging 만들기 file [1] title: [ani]깜빡이는 표정빽짱구 2011-06-02   7387
65 best of best (css) 쉐도우박스 title: [ani]깜빡이는 표정빽짱구 2007-01-21 69 7445
64 background 정의 [1] H1N1 2009-12-01   7457