iScroll 滚动条位置奇怪
我正在构建一个支持触摸的 html 应用程序,并决定使用 iScroll 在 div 内滚动。
本质上,我有两个单独的滚动 div,但滚动条始终放置在页面的最外侧
我在这里遇到的问题有两个方面。
1) 滚动条都位于最右侧(这对于向左滚动的内容没有多大意义
2)当唯一滚动的内容位于下方时,滚动条一直延伸到标题的顶部
当我在标题上设置“位置:固定”时,它会缩小到很小的尺寸,而且我似乎无法过度调整它。
I'm building a touch-enabled html app and decided to use iScroll for scrolling within a div.
essentially, I've got two seperate scrolling divs but the scrollbars are always placed on the far outside of the page
the problem I'm having here is two-fold.
1) the scroll bars are both on the far right side (which doesn't make much sense for the left-scrolling content
2) the scroll bar extends all the way to the top of the header, when the only content being scrolled is below
when I set 'position:fixed' on the header, it shrinks down to a tiny size, and I can't seem to over-right that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试在
div.scroll_hold
上使用position:relative
You could try using
position:relative
ondiv.scroll_hold