search

Home  >  Q&A  >  body text

css3 - How to ban the source of leaked files in WeChat drop-down? There are still places in the page that need to be scrolled

document.querySelector('body').addEventListener('touchmove', function(e) {
        if (!document.querySelector('.articleBox').contains(e.target)) {
            e.preventDefault();
        }
    })

Writing like this can still be displayed. How to deal with it? .articleBox is the part that needs to be scrolled

曾经蜡笔没有小新曾经蜡笔没有小新2790 days ago996

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-06-14 10:52:15

    If in WeChat on iOS, you can position the block that does not require scrolling as fixed, the block will not drop down and leak out of the source page.
    Reference link: http://www.cnblogs.com/cococe...

    reply
    0
  • PHP中文网

    PHP中文网2017-06-14 10:52:15

    Use iscroll

    reply
    0
  • Cancelreply