我正在尝试使用 jQuery 瀑布显示数据 3 列,但它不起作用。
在头 html 上,我添加了一个加载脚本
https://github.com/dfcreative/jquery.waterfall
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js?ver=1.3.2" type="text/javascript">
<script src="/themes/classic/js/zepto.js" type="text/javascript">
<script src="/themes/classic/js/jquery.waterfall.js" type="text/javascript">
该页面还有一个脚本功能:
<script type="text/javascript">
$(function(){
$('.some-container').waterfall({
autoresize: true
})
})
</script>
我想显示数据:
<div class="waterfall">
<div>hello data 1</div>
<div>
hello data 2
hello data 2
</div>
<div>
hello data 3
hello data 3
hello data 3
</div>
<div>
hello data 4
hello data 4
hello data 4
hello data 4
</div>
<div>
hello data 5
hello data 5
hello data 5
hello data 5
hello data 5
</div>
</div>
我希望你能帮助我用 jQuery 瀑布显示 3 列中的数据。非常感谢!