JS判断是否是IE浏览器

<!--[if IE]>  
    <script src="http://libs.useso.com/js/html5shiv/3.7/html5shiv.min.js"></script>  
<![endif]-->  
<!--[if IE 8]> 
<html lang="zh-cn" class="ie8 no-js">
<![endif]-->
<!--[if !IE]><!-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-cn">
<!--<![endif]-->

 

posted @ 2017-10-11 14:44  张伟大  阅读(432)  评论(0编辑  收藏  举报