How to prevent document scrolling but allow scrolling inside div elements on websites for iOS and Android?

后端 未结 11 1504
南笙
南笙 2020-12-04 10:43

I created a website with jQueryMobile for iOS and Android.

I don\'t want the document itself to scroll. Instead, just an area (a

element) sh
11条回答
  •  春和景丽
    2020-12-04 11:33

    First position the innerScroller wherever you want on the screen and then fix outerScroller by setting it css to 'hidden'. When you want to restore it you can set it back to 'auto' or 'scroll', whichever you used previously.

提交回复
热议问题