【发布时间】:2019-03-09 14:20:29
【问题描述】:
我正在尝试通过设置.mCSB_dragger 的宽度来增加滚动条的宽度,如documentation 中所述。但滚动条宽度保持不变。
$('#container1').mCustomScrollbar({
theme:"dark-3"
});
$(document).on('click', '.participants li', function(e){
});
#container1 {
height:200px;
width:100px;
padding:5px;
border:1px solid black;
}
.mCSB_dragger{
width:25px;
}
<link rel="stylesheet" href="//malihu.github.io/custom-scrollbar/jquery.mCustomScrollbar.min.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="//malihu.github.io/custom-scrollbar/jquery.mCustomScrollbar.concat.min.js"></script>
<div id="container1">
<p>1</p>
<p>2</p>
<p>3</p>
<p>4</p>
<p>5</p>
<p>6</p>
<p>6</p>
<p>6</p>
</div>
代码如下:
【问题讨论】:
标签: javascript jquery html css mcustomscrollbar