不同浏览器加载不同文件

<!--[if IE 6]> 
<![endif]--> 
只有IE6版本可见 
<!--[if lte IE 6]> 
<![endif]--> 
IE6及其以下版本可见 
<!--[if gte IE 6]> 
<![endif]--> 
IE6及其以上版本可见 
<!--[if IE 7]> 
<![endif]--> 
只有IE7版本可见 
<!--[if lte IE 7]> 
<![endif]--> 
IE7及其以下版本可见 
<!--[if gte IE 7]> 
<![endif]--> 
IE7及其以上的版本可见 
<!--[if IE 8]> 
<![endif]--> 
只有IE8版本可见 
<!--[if lte IE 8]> 
<![endif]--> 
IE8及其以下的版本可见 
<!--[if gte IE 8]> 
<![endif]--> 
IE8及其以上的版本可见 
<![if !IE]> 
<![endif]> 

除了IE以外的版本 


除了IE以外的版本加载的js
<!--[if !IE]><!--> 
       <script src="js/jquery.js"></script> 
 <!--<![endif]-->
 
iE10 及以上的版本 
 <!--[if gte IE 10]> 
      <script src="js/jquery-1.6.2.min.js"></script> 
 <![endif]-->
 

iE9及以下的版本 
  <!--[if let IE 9]> 
      <script src="js/jquery.js"></script> 
 <![endif]-->


 lte:就是Less than or equal to的简写,也就是小于或等于的意思。 lt :就是Less than的简写,也就是小于的意思。 gte:就是Greater than or equal to的简写,也就是大于或等于的意思。 gt :就是Greater than的简写,也就是大于的意思。 ! : 就是不等于的意思,跟javascript里的不等于判断符相同

转载自: https://blog.csdn.net/qq_25896925/article/details/43614863



猜你喜欢

转载自blog.csdn.net/dcxia89/article/details/80320411