scrollview for jQuery mobile tollbars *not* to be fixed

前端 未结 1 1949
悲哀的现实
悲哀的现实 2021-01-26 17:33

I have been using scrollview (http://jquerymobile.com/test/experiments/scrollview/) successfully for an image gallery left/right swipe (which looks great) however the header/foo

相关标签:
1条回答
  • 2021-01-26 17:42

    Change <div data-role="header" data-position="fixed"> into <div data-role="header"> in your html and it should be enough.

    [edit]

    Ok, It's not enough.

    Scrollview plugin scrolls the area of a HTML element that it's applied to, so to scroll the whole page instead of a div in the content, you would have to put data-scroll="true" attribute in the page div.

    I hereby declare, that I didn't test if it is supported by the scrollview plugin. ;)

    0 讨论(0)
提交回复
热议问题