Flexslider not loading properlly

大城市里の小女人 提交于 2019-12-12 03:57:12

问题


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..

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
});

and also tried $(window).load

Has anyone else had this problem before?


回答1:


Instead of $(window).load try $(document).ready



来源:https://stackoverflow.com/questions/14486605/flexslider-not-loading-properlly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!