问题
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