admin管理员组文章数量:1340880
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:
Folder structure:
The Owl CSS files had their extension changed to .less and are included inside the main LESS file which I pile into CSS, which means that the files are there.
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./PjftpnJx
Folder structure:
The Owl CSS files had their extension changed to .less and are included inside the main LESS file which I pile into CSS, which means that the files are there.
Share Improve this question edited May 6, 2014 at 15:35 Joshua Taylor 85.9k9 gold badges162 silver badges364 bronze badges asked Jan 18, 2014 at 16:22 user3210253user3210253 12- Check your browser's console for errors. – j08691 Commented Jan 18, 2014 at 16:23
-
Only error I get is
Uncaught ReferenceError: $ is not defined index.html:42 (anonymous function)
Which seems odd considering I'm using jQuery – user3210253 Commented Jan 18, 2014 at 16:25 - Are you sure the path is correct? – j08691 Commented Jan 18, 2014 at 16:25
- Should be, considering the fact that in Chrome's dev tools I can click on the links, and other sites I've made uses a similar syntax. – user3210253 Commented Jan 18, 2014 at 16:27
- 1 the error means jquery is not loaded. use developer tool to check the jquery link and see if you get it – Godinall Commented Jan 18, 2014 at 16:30
2 Answers
Reset to default 7Found 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.
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./index.html
Now, Prev/Next buttons, Scroll-Drag and Auto-advance work on IE and Chrome.
本文标签: javascriptOwl Carousel not working at allStack Overflow
版权声明:本文标题:javascript - Owl Carousel not working at all - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743656508a2517217.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论