iScroll 滚动条位置奇怪

发布于 2024-12-23 12:55:13 字数 328 浏览 1 评论 0原文

我正在构建一个支持触摸的 html 应用程序,并决定使用 iScroll 在 div 内滚动。

本质上,我有两个单独的滚动 div,但滚动条始终放置在页面的最外侧

http://jsfiddle.net/ SRXMn/3/

我在这里遇到的问题有两个方面。

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

http://jsfiddle.net/SRXMn/3/

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烙印 2024-12-30 12:55:13

您可以尝试在 div.scroll_hold 上使用 position:relative

You could try using position:relative on div.scroll_hold

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文