Nicescroll 是制作自定义滚动条的jq插件。支持div,iframe,html等
使用如下:
<script src="js/jquery.nicescroll/jquery.nicescroll.js" type="text/javascript"></script>
$(document).ready(function(){
$("html").niceScroll({
cursorcolor:"#E62020",
cursoropacitymax:1,
touchbehavior:false,
cursorwidth:"10px",
cursorborder:"0",
cursorborderradius:"5px"
});
})
最终效果: