訣竅是使用引導類「行」。
jQuery的
$('#myCarousel').carousel({
interval: 10000
})
HTML
<div class="col-md-7">
<div id="myCarousel" class="carousel slide">
<div class="carousel-inner">
<div class="item active">
<div class="row">
<div class="col-md-4">
<a href="#"><img src="http://placehold.it/500/bbbbbb/fff&text=1" class="img-responsive"></a>
</div>
<div class="col-md-4">
<a href="#"><img src="http://placehold.it/500/CCCCCC&text=2" class="img-responsive"></a>
</div>
<div class="col-md-4">
<a href="#"><img src="http://placehold.it/500/eeeeee&text=3" class="img-responsive"></a>
</div>
</div>
</div>
<div class="item">
<div class="row">
<div class="col-md-4">
<a href="#"><img src="http://placehold.it/500/f4f4f4&text=4" class="img-responsive"></a>
</div>
<div class="col-md-4">
<a href="#"><img src="http://placehold.it/500/fcfcfc/333&text=5" class="img-responsive"></a>
</div>
<div class="col-md-4">
<a href="#"><img src="http://placehold.it/500/f477f4/fff&text=6" class="img-responsive"></a>
</div>
</div>
</div>
</div>
<a class="left carousel-control" href="#myCarousel" data-slide="prev"><i class="glyphicon glyphicon-chevron-left"></i></a>
<a class="right carousel-control" href="#myCarousel" data-slide="next"><i class="glyphicon glyphicon-chevron-right"></i></a>
</div>
</div>
CSS
.carousel-inner .active.left { left: -33%; }
.carousel-inner .next { left: 33%; }
.carousel-inner .prev { left: -33%; }
.carousel-control.left,.carousel-control.right {background-image:none; color: black;}
希望它能幫助!
你試過了什麼?爲我們提供一個可用的jsfiddle(或同等版本),以便我們輕鬆玩轉。 – nicolallias
完成此片段http://jsfiddle.net/getqbybw/,以便我們可以嘗試重現您的案例,然後思考如何修改它。 – nicolallias
謝謝nicolallias的迴應。以上示例與http://www.bootply.com/94444相同。所以,而不是1圖像滑動,我需要在當時滑動3圖像。而且,圖形箭頭不可見。你能幫忙嗎? –