开发者

jQuery Scroll Box Without Scrollbar

I 开发者_Go百科have a box that is 250px x 250px. I want to make it scrollable, but I don't want to have the scrollbars appear because of how much space they take up. I assume this is possible with jQuery, but not finding anything. Anyone know?


You can put what you want to scroll inside a another div, whose size is set. And make the css of this container to overflow: hidden; so there are no scroll bars. Then you can create some triggers (click on up/down arrows, etc.) that trigger a scrollTo on the container div.

Here's an example: http://jsfiddle.net/UwEe2/


Found a nice script: jQuery slimScroll, solving your problem while looking awesome. (not my script)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜