https://github.com/KingSora/OverlayScrollbars
初始化
var instance = OverlayScrollbars(document.getElementById("iframe-header"), {
className : "os-theme-dark",
resize : "none",
sizeAutoCapable : true,
clipAlways : true,
normalizeRTL : true,
paddingAbsolute : false,
autoUpdate : null,
autoUpdateInterval : 33,
updateOnLoad : ["img"],
nativeScrollbarsOverlaid : {
showNativeScrollbars : false,
initialize : true
},
overflowBehavior : {
x : "scroll",
y : "hidden"
},
scrollbars : {
visibility : "hidden",
autoHide : "never",
autoHideDelay : 800,
dragScrolling : true,
clickScrolling : false,
touchSupport : true,
snapHandle : false
},
textarea : {
dynWidth : false,
dynHeight : false,
inheritedAttrs : ["style", "class"]
},
callbacks : {
onInitialized : null,
onInitializationWithdrawn : null,
onDestroyed : null,
onScrollStart : null,
onScroll : null,
onScrollStop : null,
onOverflowChanged : null,
onOverflowAmountChanged : null,
onDirectionChanged : null,
onContentSizeChanged : null,
onHostSizeChanged : null,
onUpdated : null
}
});
- THE END -
最后修改:2020年6月17日
非特殊说明,本博所有文章均为博主原创。
如若转载,请注明出处:https://www.95app.top/html-%e5%85%83%e7%b4%a0%e6%bb%9a%e5%8a%a8%e6%9d%a1/