IOS透明弹层下内容禁止滚动
文章目录
最简单粗暴的方法,就是给蒙层的最外层div加上禁止穿透
document.getElementsById("modal-wrapper").ontouchmove = (e) => {
e.preventDefault();
} 最简单粗暴的方法,就是给蒙层的最外层div加上禁止穿透
document.getElementsById("modal-wrapper").ontouchmove = (e) => {
e.preventDefault();
}
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论