Home > Web Front-end > HTML Tutorial > css:条件注释判断浏览器_html/css_WEB-ITnose

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-24 11:32:08
Original
907 people have browsed it

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

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

除IE外都可识别 Target everything EXCEPT IE

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

仅IE7可识别 Target IE 7 ONLY 

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

 仅IE6可识别   Target IE 6 ONLY

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

 仅IE5可识别Target IE 5 ONLY 

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

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

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

 

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

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

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

  

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

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

 

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

  

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

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

 

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

  

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

  

 

 

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

 

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template