Bootstrap Carousel:删除自动幻灯片 [英] Bootstrap Carousel : Remove auto slide
本文介绍了Bootstrap Carousel:删除自动幻灯片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Bootstrap Carousel。我想要的是滑块只会在单击导航或分页时滑动。
我试过删除
I'm using Bootstrap Carousel. All I want is that the slider will only slide when a navigation or a pagination is clicked. I've tried removing
$('.carousel').carousel({
interval: 6000
});
它工作正常但我的问题是我已经点击导航或分页,现在是自动滑动。是否可以删除自动滑动功能?如果是这样,怎么样?
It works fine but my problem is once I've already clicked a navigation or pagination, it is now auto sliding. Is it possible to remove the auto sliding function? If so, how?
推荐答案
请尝试添加:
interval: false
这将使自动滑动停止,因为没有添加Milliseconds且永远不会滑块接下来。
that will make the auto sliding stop because there no Milliseconds added and will never slider next.
这篇关于Bootstrap Carousel:删除自动幻灯片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文