【发布时间】:2012-11-03 12:50:36
【问题描述】:
我使用jScrollPane,它工作得很好,但是当我在jQuery中使用加载函数时就不行了。
如果我有一个div用overflow:auto加载内容,当加载div时,内容不同,jScrollPane不显示滚动条。
对于 jQuery 加载,我使用这个:
function infor(id) {
$(document).ready(function () {
$("#web_loader_text_content").show(2000);
$("#web_loader_text_content").load("indexer_data.php?id="+id);
});
}
我要求在带有链接的 div 中加载内容:
<div class="web_botones" id="b1" onclick="infor('houses1');"></div>
<div class="web_botones" id="b2" onclick="infor('houses2');"></div>
<div class="web_botones" id="b3" onclick="infor('houses3');"></div>
问题来了:
$(function() {
$('#web_loader_text_content').jScrollPane();
});
问题是我有不同大小的不同内容,滚动条不显示。
【问题讨论】:
-
您将
$(document).ready()放在一个函数中,我假设您没有调用 onLoad。 -
是的,我打电话,问题不,你必须知道这个插件才能解决这个问题,谢谢,问候
标签: javascript jquery scroll jscrollpane