简体   繁体   中英

strange position of iScroll scrollbar

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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