问题
Working on an iOS web app. The user can scroll the content of the page up and down. However, is there a way to stop the screen from being dragged so far that the grey background becomes visible? This is replicable by opening any webpage in mobile safari and pulling the page down.
回答1:
You can use a javascript library like pastrykit, or iScroll, to handle the scrolling instead of the default, similarly to how the mobile gmail webpage works, or the iPhone User Guide.
来源:https://stackoverflow.com/questions/5214348/stop-scrolling-over-edge-of-screen-on-ios-web-apps