github地址 http://noraesae.github.io/perfect-scrollbar/
下载地址 https://pan.baidu.com/s/1skMrbHF
function changeSize() {
var width = parseInt($("#Width").val());
var height = parseInt($("#Height").val());
$("#Demo").width(width).height(height);
// update scrollbars
$('#Demo').perfectScrollbar('update');
// or even with vanilla JS!
Ps.update(document.getElementById('Demo'));
}
$(function() {
$('#Demo').perfectScrollbar();
// with vanilla JS!
Ps.initialize(document.getElementById('Demo'));
});
网友评论