禁止蒙层底部页面跟随滚动
摘要:
1 let bodyEl = document.body 2 let top = 0 3 4 function stopBodyScroll (isFixed) { 5 if (isFixed) { 6 top = window.scrollY 7 8 bodyEl.style.position = 'fixed' 9 bodyEl.style.... 阅读全文
posted @ 2019-04-29 15:18 niuben 阅读(373) 评论(0) 推荐(0) 编辑