关于javascript:IOS透明弹层下内容禁止滚动

6次阅读

共计 107 个字符,预计需要花费 1 分钟才能阅读完成。

最简略粗犷的办法,就是给蒙层的最外层 div 加上禁止穿透

  document.getElementsById("modal-wrapper").ontouchmove = (e) => {e.preventDefault();
  }  
正文完
 0