码迷,mamicode.com
首页 > 其他好文 > 详细

火狐对IE6,IE7的处理方式值得学习

时间:2014-09-01 19:05:03      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:blog   http   io   ar   2014   html   log   sp   on   

http://i.firefoxchina.cn/html/badbrowser.html

 

 

<script>var userAgent = navigator.userAgent,agentReg = /MSIE [67]\.\d/,isIELowerVersion = agentReg.test(userAgent);if(isIELowerVersion){window.location.href = "html/badbrowser.html";}</script>

bubuko.com,布布扣

火狐对IE6,IE7的处理方式值得学习

标签:blog   http   io   ar   2014   html   log   sp   on   

原文地址:http://www.cnblogs.com/dingyuanxin/p/3949616.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!