我的帶Bootstrap的傳送帶正在跳過一張圖像,我找不到原因。基本上它從圖像1到圖像3,然後它轉到圖像2,然後從那裏跳回到圖像1並重復該循環。有人可以幫幫我嗎?Bootstrap傳送帶正在執行步驟2而不是1
代碼轉盤:
<div class = "container">
<div class = "container col-xs-6">
<div id = "banners" class="carousel-slide" data-ride="carousel">
<div class = "carousel-inner">
<ol class = "carousel-indicators">
<li data-target = "#banners" data-slide-to = "0" class = "active"></li>
<li data-target = "#banners" data-slide-to = "1"></li>
<li data-target = "#banners" data-slide-to = "2"></li>
</ol>
<div class = "item active">
<img id = "banners" src = 'images\slide5.jpg' class = "img-responsive"/>
</div>
<div class = "item">
<img id = "banners" src = 'images\slide4.jpg' class = "img-responsive"/>
</div>
<div class = "item">
<img id = "banners" src = 'images\slide3.jpg' class = "img-responsive"/>
</div>
</div>
<script type='text/javascript'>
$(document).ready(function() {
$('.banners').carousel({
interval: 2000
})
});
</script>
</div>
</div>
</div>
快速編輯:我也只注意到該指標不上點擊鼠標反應了,我該怎麼解決呢?
我嘗試#1和它立刻解決了這個問題,TY。 – BadAtPHP
沒問題,歡迎您。 – vanburen