1

我正在使用溢出:滚动;在移动和桌面访问者可以看到的页面上,并且运行良好。然而,可滚动元素上没有滚动条,因此用户甚至可能没有意识到他们应该滚动。

以这个 html 为例:

<p style="height: 200px; width: 50%; margin-left: 25%; border: 1px solid #ccc; overflow: scroll;"> asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf asdfasdf  </p>

这是一个 jsFiddle:http: //jsfiddle.net/tfQDB/

该元素是完全可滚动的,但没有视觉指示器,即使在滚动时也是如此。我是否必须放置一些图像来向用户表明可以滚动,或者有没有办法强制 iOS 显示它自己的滚动条?

4

0 回答 0