How do I get scrollbars to show in Mobile Safari?

前端 未结 7 1423
长情又很酷
长情又很酷 2020-12-05 10:46

The jQuery time-picker plugin that I wrote uses a div as the containing block for the list of times, and on Mobile Safari there are no scrollbars to indicate that there are

7条回答
  •  忘掉有多难
    2020-12-05 11:32

    By convention, scrollbars are not used on iOS.

    For a div with overflow: scroll, the only native way to scroll is with two fingers.

    You might take a look at iScroll, a JavaScript library which handles touch events and implements single-finger momentum scrolling (what users generally expect in native apps) for divs.

提交回复
热议问题