[英]Bootstrap carousel prev/next issue
Basically what I'm trying to do is go left/right pictures but instead my page moves slightly lower I'm even trying to follow an instructor on how to get this done but there must be a piece of code I'm missing基本上我想做的是向左/向右移动图片,但我的页面略微向下移动我什至试图跟随一位讲师如何完成这项工作,但必须有一段代码我丢失了
<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>
I wanted to be able to view pictures manually (by clicking on them) with the previous/next buttons我希望能够使用上一个/下一个按钮手动查看图片(通过单击它们)
Ok a friend of mine helped me over a 30m call to solve this issue.好的,我的一个朋友帮我打了 30m 多的电话来解决这个问题。 Problem was that my referred (href) was inside link instead of a script问题是我推荐的 (href) 是内部链接而不是脚本
I must have accidentally replaced this somehow along the way when I moved folders (because I mostly refer links and don't use local library.)我一定是在移动文件夹的过程中不小心以某种方式替换了它(因为我主要引用链接而不使用本地库。)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.