本文介绍了防止Twitter Bootstrap轮播在页面加载时自动滑动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
那么,除非单击了下一个或上一个按钮,否则是否有阻止twitter引导轮播在页面加载时自动滑动的方法?
So is there anyway to prevent twitter bootstrap carousel from auto sliding on the page load unless the next or previous button is clicked?
谢谢
推荐答案
或者,如果您使用的是Bootstrap 3.0,则可以使用data-interval ="false"停止循环
Or if you're using Bootstrap 3.0 you can stop the cycling with data-interval="false" for instance
<div id="carousel-example-generic" class="carousel slide" data-interval="false">
其他有用的轮播数据属性在此处-> http://getbootstrap.com/javascript/#carousel-usage
Other helpful carousel data attributes are here -> http://getbootstrap.com/javascript/#carousel-usage
这篇关于防止Twitter Bootstrap轮播在页面加载时自动滑动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!