我在我的应用程序中使用了 nicescroll。我注定喜欢
$("#Total").niceScroll({
cursorwidth: '8px',
cursorborder: 'none',
cursorborderradius:'0px',
cursorcolor:"#39CCDB"
});
但我不想给出上述样式。我想使用一个类来应用这些。为此我已经实现了
.scroll {
cursorwidth: '8px',
cursorborder: 'none',
cursorborderradius:'0px',
cursorcolor:"#39CCDB"
}
和
var scrollbar = $("#Total").niceScroll({});
scrollbar.addClass("scroll");
但不起作用,请告诉我如何将样式应用于 nicescroll 类。