css - Using -webkit-overflow-scrolling: touch; in body is invalid
迷茫
迷茫 2017-05-16 13:21:06
0
5
776
body{ -webkit-overflow-scrolling: touch; overflow-scrolling: touch; }

Write directly tobodyoverflow-scrolling: touchdoes not have a rebound effect on iOS phones, but writing to a singlepwill have a rebound effect , this is why

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all (5)
滿天的星座

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

    曾经蜡笔没有小新

    Add overflow: auto to the body and try it

      小葫芦

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

        習慣沉默

        Try setting a height beyond the visible area for body

          Ty80

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

            Latest Downloads
            More>
            Web Effects
            Website Source Code
            Website Materials
            Front End Template
            About us Disclaimer Sitemap
            php.cn:Public welfare online PHP training,Help PHP learners grow quickly!