creating jscrollpane-arrows outsite jspContainer

随声附和 提交于 2019-12-10 10:14:25

问题


Is there an easy way to create the arrows outside the jspcontainter and horizontally arranged for a vertical scroll bar? As the container has overflow:hidden with positioning the arrows cannot be displayed outside.

I tried to clone the arrows with jquery clonefunction, but the js hangs up scrolling up again. Is there a way to add default-behavior to custom controls outside the container with the api?


回答1:


The best way to do this would be to not show arrows on the jScrollPane itself and then create different elements outside and position them as you like. You could then add a click handler to these new elements and in it use the jScrollPane API and the scrollByY method to make the jscrollpane scroll when they are clicked on...



来源:https://stackoverflow.com/questions/5388842/creating-jscrollpane-arrows-outsite-jspcontainer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!