这是我的网站。我想做一个瀑布和无限滚动网站,它是很好的工作在pc上,但无限加载不工作在我的iPhone 6 Chrome。为什么?
这是我的密码:
<div id="container"> </div>
<script type="text/x-handlebars-template" id="waterfall-tpl">
{{#result}}
<div class="item">
<img src="{{image}}" width="{{width}}" height="{{width}}" />
<!--<p>{{title}}</p>
<p>{{description}}</p>
<span style="color:gray;text-decoration:line-through;">{{price_standard}}</span> <span style="color:darkred;">{{price_promo}}</span>-->
</div>
{{/result}}
</script>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="js/libs/handlebars/handlebars.js"></script>
<script src="js/libs/jquery.easing.js"></script>
<script src="js/waterfall.js"></script>
<script>
$('#container').waterfall({
itemCls: 'item',
colWidth: 222,
gutterWidth: 15,
gutterHeight: 25,
checkImagesLoaded: false,
minCol: 1,
maxCol: 6,
isAnimated: true,
animationOptions: {
},
path: function (page) {
return 'data/data' + page + '.json';
}
});
</script>发布于 2015-03-25 03:27:03
Ios不运行滚动事件,直到您举起手指并停止滚动。如果在底部释放手指,结果将加载,但在这样做之前,无限滚动代码永远不会运行。不幸的是,没有办法解决这个问题。可能会为ios用户显示一条类似于“发布以加载更多”的信息?
https://stackoverflow.com/questions/29246730
复制相似问题