我在我的 DIV 中实现了 jQuery 插件niceScroll。它工作得很好,除非我将 .load() 函数添加到使用niceScroll的标签中,没有滚动工作。但是如果我删除 niceScroll,那么本机滚动条可以正常工作......?
这是针对 webKit 浏览器的。有什么想法还是我在我的代码中是个傻瓜?
$(document).ready(
function(e) {
$("#west").load('http://mySite.comregulatory_list.php', '', function(response, status, xhr) {
if (status == 'error') {
var msg = "Sorry but there was an error: ";
$(".content").html(msg + xhr.status + " " + xhr.statusText);
}
});
$("#west").niceScroll({
cursorcolor : "#6699FF",
cursorwidth : "2px",
grabcursorenabled : "false",
preservenativescrolling : "false",
cursorborder : "0px",
scrollspeed : "20",
});
})