gpt4 book ai didi

html - 为什么轮播下一个按钮和圆形按钮不起作用

转载 作者:行者123 更新时间:2023-11-28 02:58:15 26 4
gpt4 key购买 nike

这是我从 http://bootstrapbay.com/blog/bootstrap-3-carousel-tutorial/ 获得的轮播教程代码.轮播下一个按钮和轮播虚线按钮不起作用。我不知道会发生什么。请帮我解决这个问题。我把图像和红色按钮确定不起作用的按钮。

<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
</ol>

<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img src="http://placehold.it/1200x315" alt="...">
<div class="carousel-caption">
<h3>Caption Text</h3>
</div>
</div>
<div class="item">
<img src="http://placehold.it/1200x315" alt="...">
<div class="carousel-caption">
<h3>Caption Text</h3>
</div>
</div>
<div class="item">
<img src="http://placehold.it/1200x315" alt="...">
<div class="carousel-caption">
<h3>Caption Text</h3>
</div>
</div>
</div>

<!-- Controls -->
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div> <!-- Carousel -->

Carousel ScreenShot

最佳答案

作为 tutorial you linked in the question 的第 2 步说,你必须添加以下标签来添加 jquery(顺序很重要):

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>

关于html - 为什么轮播下一个按钮和圆形按钮不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35889023/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com