嗨,
我已经开始使用Bootstrap,发生了一些奇怪的事情,
当我运行代码时,控件可以正常工作,但是没有幻灯片的动画(例如在Bootstrap网站上)
这是代码
PLZ帮助
(代码来自应用程序啤酒厂训练营,所以不要嘲笑我:))
<section id="testimonials">
<div id="test-carousel" class="carousel slide" data-ride="carousel">
<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="test-img" 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="test-img" src="images/lady-img.jpg" alt="lady-profile">
<em>Beverly, Illinois</em>
</div>
</div>
<a class="carousel-control-prev" href="#test-carousel" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#test-carousel" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</section>
答案 0 :(得分:0)
编辑
iv'e发现了问题所在...
它仅在Bootstrap 4.0.0中受支持
和iv'e在4.4.1上尝试过