jScrollPane - 如何获得轨道的固定宽度
我在我的网站上使用 jScrollPane ,一切正常,但我想执行以下操作:当前轨道有一个宽度为 100%(它与内容一样拉伸),但我不想让它像内容一样可拉伸,我希望它具有固定宽度,例如 400px。 有没有机会可以做到?我尝试在 style.css 中更改它,但似乎不起作用:(
谢谢
I am using jScrollPane on my website and everything works fine but I want to do the following: Currently the track has a width of 100% (it stretches as much as the content does) but I don't want to make it stretchable as the content, I want it to have a fixed width of for example 400px.
Is there any chance that can be done? I have tried changing it in style.css but doesn't seem to work :(
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://jscrollpane.kelvinluck.com/settings.html
horizontalDragMinWidth = 400;
水平拖动最大宽度 = 400;
我认为这可以解决问题
http://jscrollpane.kelvinluck.com/settings.html
horizontalDragMinWidth = 400;
horizontalDragMaxWidth = 400;
i think this will do the trick