問題描述
是否可以強制 jQuery.jScrollPane 始終顯示垂直滾動條?
Is it possible to force jQuery.jScrollPane to always show a vertical scroll-bar?
例如隱藏設置,API函數?
e.g. hidden setting, API function?
最好不要觸及內容窗格、它的高度等.
Preferably without touching the content pane, its height etc.
推薦答案
不幸的是,目前 jScrollPane 無法做到這一點.不過有一個開放的功能請求:
Unfortunately this isn't currently possible with jScrollPane. There is an open feature request for it though:
https://github.com/vitch/jScrollPane/issues#issue/8
作為目前的解決方法,您可以直接在滾動窗格內放置一個最小高度的元素,以強制滾動條,如下例所示:
As a workaround for now you could place an element with a min-height directly inside your scrollpane to force the scrollbar like in this example:
http://www.jsfiddle.net/vitch/5D8sR/
希望對你有幫助!
這篇關于是否可以強制 jQuery.jScrollPane 始終顯示垂直滾動條?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!