본문으로 바로가기

[CSS] if IE 명령어 예제

category Helloworld!/CSS 2015. 4. 29. 13:49
<!--[if IE 8]> <link rel='stylesheet' href='ie8.css' type=text/css><![endif]-->
//ie8 브라우저 일때 ie8.css를 적용해라

<!--[if IE 7]> <link rel='stylesheet' href='ie7.css' type=text/css><![endif]-->
//ie7 브라우저 일때 ie7.css를 적용해라

<!--[if IE 6]> <link rel='stylesheet' href='ie6.css' type=text/css><![endif]-->
//ie6 브라우저 일때 ie6.css를 적용해라

<!--[if IE 8]> 본문 <![endif]--> //ie8 브라우저 일때
<!--[if IE 7]> 본문 <![endif]--> //ie7 브라우저 일때
<!--[if IE 6]> 본문 <![endif]--> //ie6 브라우저 일때


<!--[if lt IE 8]> 본문 <![endif]--> //ie8미만 브라우저
<!--[if lte IE 8]> 본문 <![endif]--> //ie8이하 브라우저
<!--[if gt IE 8]> 본문 <![endif]--> //ie8초과 브라우저
<!--[if gteIE 8]> 본문 <![endif]--> //ie8이상 브라우저


<!--[if !IE]> 본문 <![endif]--> //ie브라우저가 아닐 경우
<!--[if IE]> 본문 <![endif]--> //ie브라우저일 경우