>  기사  >  웹 프론트엔드  >  css:条件注释判断浏览器_html/css_WEB-ITnose

css:条件注释判断浏览器_html/css_WEB-ITnose

WBOY
WBOY원래의
2016-06-24 11:32:08822검색

 所有的IE可识别 Target ALL VERSIONS of IE

<!--[if IE]>	<link rel="stylesheet" type="text/css" href="all-ie-only.css" /><![endif]-->

除IE外都可识别 Target everything EXCEPT IE

<!--[if !IE]><!-->	<link rel="stylesheet" type="text/css" href="not-ie.css" /> <!--<![endif]-->

仅IE7可识别 Target IE 7 ONLY 

<!--[if IE 7]>	<link rel="stylesheet" type="text/css" href="ie7.css"><![endif]-->

 仅IE6可识别   Target IE 6 ONLY

<!--[if IE 6]>	<link rel="stylesheet" type="text/css" href="ie6.css" /><![endif]-->

 仅IE5可识别Target IE 5 ONLY 

<!--[if IE 5]>	<link rel="stylesheet" type="text/css" href="ie5.css" /><![endif]-->

 IE6以及IE6以下版本可识别 Target IE 6 and LOWER

<!--[if lt IE 7]>	<link rel="stylesheet" type="text/css" href="ie6-and-down.css" /><![endif]-->

 

<!--[if lte IE 6]>	<link rel="stylesheet" type="text/css" href="ie6-and-down.css" /><![endif]-->

 IE7以及IE7以下版本可识别Target IE 7 and LOWER 

<!--[if lt IE 8]>	<link rel="stylesheet" type="text/css" href="ie7-and-down.css" /><![endif]-->

  

<!--[if lte IE 7]>	<link rel="stylesheet" type="text/css" href="ie7-and-down.css" /><![endif]-->

  IE6以及IE6以上版本可识别 Target IE 6 and HIGHER

 

<!--[if gt IE 5.5]>	<link rel="stylesheet" type="text/css" href="ie6-and-up.css" /><![endif]-->

  

<!--[if gte IE 6]>	<link rel="stylesheet" type="text/css" href="ie6-and-up.css" /><![endif]-->

  IE7以及IE7以上版本可识别Target IE 7 and HIGHER

 

<!--[if gt IE 6]>	<link rel="stylesheet" type="text/css" href="ie7-and-up.css" /><![endif]-->

  

<!--[if gte IE 7]>	<link rel="stylesheet" type="text/css" href="ie7-and-up.css" /><![endif]-->

  

 

 

from https://css-tricks.com/how-to-create-an-ie-only-stylesheet/

 

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.