首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么这段代码不能工作?(在我的iphone 6,chrome上)

问为什么这段代码不能工作?(在我的iphone 6,chrome上)
EN

Stack Overflow用户
提问于 2015-03-25 03:05:21
回答 1查看 170关注 0票数 0

这是我的网站。我想做一个瀑布和无限滚动网站,它是很好的工作在pc上,但无限加载不工作在我的iPhone 6 Chrome。为什么?

这是我的密码:

代码语言:javascript
复制
    <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>&nbsp;&nbsp;<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>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-03-25 03:27:03

Ios不运行滚动事件,直到您举起手指并停止滚动。如果在底部释放手指,结果将加载,但在这样做之前,无限滚动代码永远不会运行。不幸的是,没有办法解决这个问题。可能会为ios用户显示一条类似于“发布以加载更多”的信息?

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29246730

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档