gpt4 book ai didi

jquery - 如何使用mCustomScrollbar同时显示水平和垂直滚动条?

转载 作者:行者123 更新时间:2023-12-01 06:47:30 25 4
gpt4 key购买 nike

(function($){
$(window).load(function(){
$("#content_1").mCustomScrollbar({
scrollButtons: {
enable: true
},
theme: "dark",
horizontalScroll: true,
advanced: { updateOnContentResize: true, updateOnBrowserResize: true }
});
});
})(jQuery);

我使用上面的代码在相同的内容中显示水平和垂直滚动条,但是,只出现水平滚动条。如何强制显示两个滚动条?

最佳答案

$("#content_1").mCustomScrollbar({
axis:"yx",
setHeight: 'auto',
setWidth: "auto",
theme:"dark"
});

您可以在他们的页面 http://manos.malihu.gr/jquery-custom-content-scroller/ 上找到其中一些内容

我相信 setHeight: "auto"和 setWidth"auto"是主要帮助这项工作的。

关于jquery - 如何使用mCustomScrollbar同时显示水平和垂直滚动条?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21899978/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com