2
我目前被困在问题中,我在我的Bootstrap文档中有两个传送带,每个传送带都有一个唯一的ID和类(#myCarousel-1,#myCarousel-2/.carousel -1,.carousel-2)。 我定位的转盘用下面的代码:在Twitter上使用不同的时间间隔传送带Bootstrap
<script type="text/javascript">
$('#myCarousel-1').carousel({
interval: 2000
})
</script>
<script type="text/javascript">
$('#myCarousel-2').carousel({
interval: false
})
</script>
的问题是,无论是ID或类指定的特定的div。两个传送带开始间隔滑动。任何想法如何避免这种情况?
PS:我换了ID和班级这个提示后:Is it possible to have multiple Twitter Bootstrap carousels on one page?