search

Home  >  Q&A  >  body text

javascript - Some questions about the ios WeChat browser web page

Now I am making a web page on the WeChat side, but the web page on the ios WeChat side will have a black area when the head is pulled up and write xxx provided. If you continue to pull down at the bottom, a black area will appear below. I want to know this. How to deal with it

怪我咯怪我咯2750 days ago555

reply all(3)I'll reply

  • 迷茫

    迷茫2017-05-16 13:31:39

    It seems to be called elastic scrolling on Safari. I don’t know if this can help you
    disable_elastic_scroll_on_iOS_safari

    How to prevent "rubber band effect" in iOS safari?

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 13:31:39

    I’m also looking for a solution to that one. I feel like it shouldn’t be easy to solve

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-16 13:31:39

    If it is a single page and there is nothing to slide, set the touchmove of the page to preventDefault. Or, add a p at the outermost edge of the page and set position: fixed; this way the page content can still slide, and the black parts at the top and bottom will not appear. .

    reply
    0
  • Cancelreply