<div class="container">
<div class="row-fluid">
<div class="span12 text-center">
<div class="carousel slide" id="introCarousel">
<ol class="carousel-indicators"></ol>
<div class="carousel-inner">
<div class="item active">
<img alt="" src="assets/img/intro/1.jpg">
</div>
<div class="item">
<img alt="" src="assets/img/intro/2.jpg">
</div>
<div class="item">
<img alt="" src="assets/img/intro/3.jpg">
</div>
</div>
<a data-slide="prev" href="#introCarousel" class="left carousel-control">‹</a>
<a data-slide="next" href="#introCarousel" class="right carousel-control">›</a>
</div>
</div>
</div>
</div>
这是body部分的代码,已经引入Bootstrap(JS+CSS)以及jQuery
设置了carousel的width为960px
打开后出现如图情况
求教如何使carousel居中?
对id="introCarousel"设置margin:0 auto;