search

Home  >  Q&A  >  body text

css - Using -webkit-overflow-scrolling: touch; in body is invalid

body{
     -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
}

Write directly to bodyoverflow-scrolling: touch does not have a rebound effect on iOS phones, but writing to a single p will have a rebound effect , this is why

迷茫迷茫2799 days ago871

reply all(5)I'll reply

  • 滿天的星座

    滿天的星座2017-05-16 13:23:06

    I used to add overflow: hidden to the body, and then added this -webkit-overflow-scrolling: touch; and it worked

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-16 13:23:06

    Add overflow: auto to the body and try it

    reply
    0
  • 高洛峰

    高洛峰2017-05-16 13:23:06

    You can try adding a container under the body and write -webkit-overflow-scrolling: touch; into the container

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-16 13:23:06

    Try setting a height beyond the visible area for body

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 13:23:06

    overflow: auto;
    -webkit-overflow-scrolling: touch; Try this, refer to the link https://developer.mozilla.org...

    reply
    0
  • Cancelreply