[英]Bootstrap carousel prev/next issue
基本上我想做的是向左/向右移动图片,但我的页面略微向下移动我什至试图跟随一位讲师如何完成这项工作,但必须有一段代码我丢失了
<div id="testimonial-carousel" class="carousel slide" data-ride="false">
<div class="carousel-inner">
<div class="carousel-item active">
<h2>I no longer have to sniff other dogs for love. I've found the hottest Corgi on TinDog. Woof.</h2>
<img class="testimonial-image" src="images/dog-img.jpg" alt="dog-profile">
<em>Pebbles, New York</em>
</div>
<div class="carousel-item">
<h2 class="testimonial-text">My dog used to be so lonely, but with TinDog's help, they've found the love of
their life. I think.</h2>
<img class="testimonial-image" src="images/lady-img.jpg" alt="lady-profile">
<em>Beverly, Illinois</em>
</div>
</div>
<a class="carousel-control-prev" href="#testimonial-carousel" role="button" data-slide="prev">
<span class="carousel-control-prev-icon"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#testimonial-carousel" role="button" data-slide="next">
<span class="carousel-control-next-icon"></span>
<span class="sr-only">Next</span>
</a>
</div>
我希望能够使用上一个/下一个按钮手动查看图片(通过单击它们)
好的,我的一个朋友帮我打了 30m 多的电话来解决这个问题。 问题是我推荐的 (href) 是内部链接而不是脚本
我一定是在移动文件夹的过程中不小心以某种方式替换了它(因为我主要引用链接而不使用本地库。)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.