首页 > web前端 > html教程 > css:条件注释判断浏览器_html/css_WEB-ITnose

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
发布: 2016-06-24 11:32:08
原创
952 人浏览过

 所有的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
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板