[英]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.