我正在使用引导轮播,但我想要一个固定的宽度和高度,这样我的所有图像都会自动适应定义的高度和宽度。有人可以帮助我实现这一目标。
<div class="row">
<div class="span8">
<div id="myCarousel" class="carousel slide">
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1" class=""></li>
<li data-target="#myCarousel" data-slide-to="2" class=""></li>
</ol>
<div class="carousel-inner">
<div class="item active">
<img src="~/Images/Carousel/carousel_1.jpg" alt="http://www.google.com">
<div class="carousel-caption">
<h4>First Thumbnail label</h4>
<p>Deals you cannot miss.</p>
</div>
</div>
<div class="item">
<img src="~/Images/Carousel/carousel_2.jpg" alt="http://www.google.com">
<div class="carousel-caption">
<h4>Second Thumbnail label</h4>
<p>Claim it now.</p>
</div>
</div>
<div class="item">
<img src="~/Images/Carousel/carousel_1.jpg" alt="http://www.google.com">
<div class="carousel-caption">
<h4>Third Thumbnail label</h4>
<p>Act fast. Only for today.</p>
</div>
</div>
</div>
<a class="left carousel-control" href="#myCarousel" data-slide="prev">‹</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">›</a>
</div>
</div>
</div>