摘要: function browerTypeAndVersion(){ var sys = {}; var ua = navigator.userAgent.toLowerCase(); var s; (s = ua.match(/msie ([\d.]+)/)) ? sys.ie... 阅读全文
posted @ 2015-11-16 16:04 蒲木杉 阅读(326) 评论(0) 推荐(0) 编辑
摘要: var scrollTop = document.body.scrollTop // chromevar scrollTop = document.documentElement.scrollTop // ie 阅读全文
posted @ 2015-11-16 15:44 蒲木杉 阅读(3179) 评论(0) 推荐(0) 编辑
摘要: document.body.parentNode.style.overflow = "hidden";//隐藏且禁用横向纵向两个滚动条document.body.parentNode.style.overflow = "auto";//开启横向纵向两个滚动条document.body.parentN... 阅读全文
posted @ 2015-11-16 15:42 蒲木杉 阅读(714) 评论(0) 推荐(0) 编辑