zoukankan      html  css  js  c++  java
  • 根据ie浏览器不同的类别选择不同的css

    如果是IE浏览器则选择all-ie-only.css
    
    <!--[if IE]>
    	<link rel="stylesheet" type="text/css" href="all-ie-only.css" />
    <![endif]-->
    如果不是ie浏览器则选择not-ie.css
    
    <!--[if !IE]><!-->
    	<link rel="stylesheet" type="text/css" href="not-ie.css" />
     <!--<![endif]-->
    一下是不同ie浏览器选择的不同css标准
    Target only IE 7
    
    <!--[if IE 7]>
    	<link rel="stylesheet" type="text/css" href="ie7.css">
    <![endif]-->
    Target only IE 6
    
    <!--[if IE 6]>
    	<link rel="stylesheet" type="text/css" href="ie6.css" />
    <![endif]-->
    Target only IE 5
    
    <!--[if IE 5]>
    	<link rel="stylesheet" type="text/css" href="ie5.css" />
    <![endif]-->
    Target only IE 5.5
    
    <!--[if IE 5.5000]>
    <link rel="stylesheet" type="text/css" href="ie55.css" />
    <![endif]-->
    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]-->
    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]-->
    Target IE 8 and lower
    
    <!--[if lt IE 9]>
    	<link rel="stylesheet" type="text/css" href="ie8-and-down.css" />
    <![endif]-->
    <!--[if lte IE 8]>
    	<link rel="stylesheet" type="text/css" href="ie8-and-down.css" />
    <![endif]-->
    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]-->
    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]-->
    Target IE 8 and higher
    
    <!--[if gt IE 7]>
    	<link rel="stylesheet" type="text/css" href="ie8-and-up.css" />
    <![endif]-->
    <!--[if gte IE 8]>
    	<link rel="stylesheet" type="text/css" href="ie8-and-up.css" />
    <![endif]-->
    

      

  • 相关阅读:
    CentOS 6.3下Samba服务器的安装与配置(转)
    利用香蕉派自制电视盒子
    利用arduino制作瓦力万年历-1.0
    arduino:int & double 转string 适合12864下使用
    centos 6.X下建立arduino开发环境
    树莓派学习笔记(7):利用bypy实现树莓派NAS同步百度云
    直接插入排序
    直接选择排序
    快速排序算法
    git 分支管理 推送本地分支到远程分支等
  • 原文地址:https://www.cnblogs.com/uuxanet/p/3305586.html
Copyright © 2011-2022 走看看