AI编程助手
AI免费问答

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

  2016-06-24 11:32   923浏览 原创

 所有的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/

 

前端入门到VUE实战笔记:立即学习
>在学习笔记中,你将探索 前端 的入门与实战技巧!

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。