zoukankan      html  css  js  c++  java
  • IE与非IE切换使用方法:

    1、IE与非IE

    <!--[if !IE]> -->
            <script src="${pageContext.request.contextPath}/static/ace_admin/assets/js/jquery-2.1.4.min.js"></script>
    <!-- <![endif]-->
            
    <!--  [if IE] -->
           <script src="${pageContext.request.contextPath }/static/js/jquery-1.7.2.js"></script>
           <script src="${pageContext.request.contextPath }/static/js/jquery.dataTables.js"></script>
    <!--   ![endif] -->

    2、只有IE6版本可见 

    <!--[if IE 6]> 
    <![endif]-->

    3、IE6及其以下版本可见 

    <!--[if lte IE 6]> 
    <![endif]--> 

    4、IE6及其以上版本可见 

    <!--[if gte IE 6]> 
    <![endif]--> 

    5、只有IE7版本可见 

    <!--[if IE 7]> 
    <![endif]-->

    6、IE7及其以下版本可见 

    <!--[if lte IE 7]> 
    <![endif]--> 

    7、IE7及其以上版本可见 

    <!--[if gte IE 7]> 
    <![endif]--> 

    8、只有IE8版本可见 

    <!--[if IE 8]> 
    <![endif]-->

    9、IE8及其以下版本可见 

    <!--[if lte IE 8]> 
    <![endif]--> 

    10、IE8及其以上版本可见 

    <!--[if gte IE 8]> 
    <![endif]--> 

    11、除了IE以外的版本 

    <![if !IE]> 
    <![endif]> 
    或者:
    <!--[if !IE]> --> 

    <!-- <![endif]-->

     12、ie判断

    if(navigator.appName == "Microsoft Internet Explorer"&&parseInt(navigator.appVersion.split(";")[1].replace(/[ ]/g, "").replace("MSIE",""))<=9){
      console.log('ie9以下,包括ie9')
    }
  • 相关阅读:
    Roles in graphs
    COMMUNITY DETECTION
    jquery官方API
    react打包后引入
    pc网站相互跳转
    动画点击事件
    导入组件
    纯css制作loading效果
    canvas时钟
    canvas实现动画 地球绕太阳公转 月球绕地球公转
  • 原文地址:https://www.cnblogs.com/zsy0712/p/7125199.html
Copyright © 2011-2022 走看看