H5 the rubber band effect of IOS rolling is answered by the boss.

problem description

in h5 mobile development, one of my div needs to scroll (the div of this component is fixed currently). Add the overflow:auto attribute to div to test scrolling on the real machine

the environmental background of the problems and what methods you have tried

then I added three attributes of height:100% overflow:auto-webkit-overflow-scrolling:touch to the div on Baidu, and then tested on the real machine that scrolling is smooth, but occasionally the page is stuck and cannot be scrolled

quotation text
Aug.10,2021

is the number stuck too much, resulting in too many doms


try adding a z-index

Menu