document.querySelector('body').addEventListener('touchmove', function(e) {
if (!document.querySelector('.articleBox').contains(e.target)) {
e.preventDefault();
}
})
现在这么写仍然能显示出来 请问怎么处理 .articleBox是需要滚动的部分
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
如果在ios的微信中,可将不需要滚动的块定位成fixed,该块就不会下拉漏出来源页了。
参考链接:http://www.cnblogs.com/cococe...
用iscroll吧