简体   繁体   English

引导轮播未初始化

[英]Bootstrap carousel not initializing

in the class carouse-inner dynamic adding 在课堂上轮播-内部动态添加

<div class = "active item"><img ..></div>
<div class = "item"><img ..></div>
<div class = "item"><img..</div>

and call 并打电话

$('.carousel').carousel();

In inspect element, carousel html is correct, but slide on arrows click not working. 在检查元素中,轮播html是正确的,但是在箭头上滑动单击不起作用。 I think bootstrap carousel not init. 我认为自举轮播不是init。

Try to replace your current bootstrap and jquery <script> with this. 尝试以此替换当前的引导程序和jquery <script> Place this before the </body> 将此放置在</body>

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="https://code.jquery.com/jquery.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM