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

后端 未结 11 1498
南笙
南笙 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:26

    I was able to disable scrolling of the main document by adding css "overflow-y: hidden" on HTML.

    It did not mess with positioning at all.

提交回复
热议问题