Flexslider无法正确加载 [英] Flexslider not loading properlly

查看:198
本文介绍了Flexslider无法正确加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从未见过类似的问题.当我加载页面时,flexslider不会加载,但是当我打开chrome的Web检查器或萤火虫时,它会加载. 在iPad上,同样的事情,页面加载时以及我按住该按钮时都不会加载..

I never saw a similar problem. When I load the page the flexslider doesn't load, but when I open chrome's web inspector or firebug it loads. On iPad the same thing, it doesn't load when the page is loaded and when I touch and hold down-up it loads..

我正在加载css文件,lib文件,并通常在$(function(){...})内调用flexslider函数:

I'm loading the css file, lib file and calling the flexslider function normally inside a $(function(){...}):

$('.flexslider').flexslider({
    animation: "slide",
    animationLoop: true,
    itemWidth: 215,
    minItems: 2
});

并尝试了$(window).load

其他人以前有这个问题吗?

Has anyone else had this problem before?

推荐答案

而不是 $(window).load ,请尝试 $(document).ready

这篇关于Flexslider无法正确加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆