亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

javascript - How to disable the rubber band effect that appears on sarafi and IE on the mobile side
大家講道理
大家講道理 2017-05-19 10:12:15
0
1
712

In the Safari browser on iOS, when the web page is scrolled to the top, you can scroll another distance like a rubber band and rebound after letting go. This effect also exists on Windows tablets.

Please tell me how to use css to disable this effect, because it often affects the scrolling inside the page. As far as I know, there is a css attribute that can be used.

Which one is it?

大家講道理
大家講道理

光陰似箭催人老,日月如移越少年。

reply all(1)
為情所困
document.addEventListener('touchStart',function(e){
            e.preventDefault();
        })

The mobile version eliminates the rubber band effect by blocking the default event, but there is a disadvantage. The default event is blocked, the a label cannot be clicked, and the page must simulate a scroll bar

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template