简体   繁体   English

iScroll滚动条的奇怪位置

[英]strange position of iScroll scrollbar

I'm building a touch-enabled html app and decided to use iScroll for scrolling within a div. 我正在构建一个支持触摸的html应用程序,并决定使用iScroll在div中滚动。

essentially, I've got two seperate scrolling divs but the scrollbars are always placed on the far outside of the page 基本上,我有两个单独的滚动div,但滚动条总是放在页面的远端

http://jsfiddle.net/SRXMn/3/ 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 1)滚动条都在最右侧(这对于左滚动内容没有多大意义

2) the scroll bar extends all the way to the top of the header, when the only content being scrolled is below 2)当滚动的唯一内容在下面时,滚动条一直延伸到标题的顶部

when I set 'position:fixed' on the header, it shrinks down to a tiny size, and I can't seem to over-right that. 当我在标题上设置'position:fixed'时,它缩小到一个很小的尺寸,而我似乎无法过度纠正。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM