body{
-webkit-overflow-scrolling: touch;
overflow-scrolling: touch;
}
Write directly to body
overflow-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
滿天的星座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
高洛峰2017-05-16 13:23:06
You can try adding a container under the body and write -webkit-overflow-scrolling: touch; into the container
PHP中文网2017-05-16 13:23:06
overflow: auto;
-webkit-overflow-scrolling: touch; Try this, refer to the link https://developer.mozilla.org...