Owl Carousel not working at all

[亡魂溺海] 提交于 2019-12-11 08:45:22

问题


Right, I'm working on a site for a friend, and I'm trying to get a carousel working. However, seemingly, no matter what I try.

Markup: http://pastebin.com/PjftpnJx

Folder structure:

The Owl CSS files had their extension changed to .less and are included inside the main LESS file which I compile into CSS, which means that the files are there.


回答1:


Found your problem, you won't believe how simple. You just forgot to include the Owl Carousel stylesheet

<link rel="stylesheet" href="owl-carousel/owl.carousel.css">
<link rel="stylesheet" href="owl-carousel/owl.theme.css">

Working Demo Here

Edit: the problem is jQuery version, not working with 10.2, downgrade to 10.1 works.




回答2:


I had the same problem with OWL Carousel not working on IE and Chrome.

I've fixed it by replace the old version with the newest : http://www.owlcarousel.owlgraphic.com/index.html

Now, Prev/Next buttons, Scroll-Drag and Auto-advance work on IE and Chrome.



来源:https://stackoverflow.com/questions/21206656/owl-carousel-not-working-at-all

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