我有三个轮播,span4
当我将网页缩小到平板电脑大小时,我不希望它们垂直排列。我希望在我将网页缩小到手机大小时发生这种情况。
因为,当我的浏览器是平板电脑大小时,轮播会垂直放置并被拉伸(我不想要)。这是我的代码:
div class="container">
<div class="row-fluid">
<div class="span4 w" >
<div id="myCarousel" class="carousel slide" style="overflow: hidden">
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>
<!-- Carousel items -->
<div class="carousel-inner">
<div class="active item">
<img class="carouselImg" src="fall.jpg"/>
</div>
<div class="item"> <img class="carouselImg" src="clock8.jpg"/></div>
<div class="item"> <img class="carouselImg" src="color.jpg"/></div>
</div>
<!-- Carousel nav -->
<a class="carousel-control left" href="#myCarousel" data-slide="prev">‹</a>
<a class="carousel-control right" href="#myCarousel" data-slide="next">›</a>
</div>
</div>
</div>
<div class="span4 w">
<div id="myCarousel1" class="carousel slide" style="overflow: hidden">
<ol class="carousel-indicators">
<li data-target="#myCarousel1" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel1" data-slide-to="1"></li>
<li data-target="#myCarousel1" data-slide-to="2"></li>
</ol>
<!-- Carousel items -->
<div class="carousel-inner">
<div class="active item"> <img class="carouselImg" src="color.jpg"/></div>
<div class="item"> <img class="carouselImg" src="dots.jpg"/></div>
<div class="item"> <img class="carouselImg" src="light.jpg"/></div>
</div>
<!-- Carousel nav -->
</div>
</div>
<div class="span4 w">
<div id="myCarousel2" class="carousel slide " style="overflow: hidden">
<ol class="carousel-indicators">
<li data-target="#myCarousel2" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel2" data-slide-to="1"></li>
<li data-target="#myCarousel2" data-slide-to="2"></li>
</ol>
<!-- Carousel items -->
<div class="carousel-inner">
<div class="active item"> <img class="carouselImg" src="ball.jpg"/></div>
<div class="item"> <img class="carouselImg" src="fall.jpg"/></div>
<div class="item"> <img class="carouselImg" src="ball.jpg"/></div>
</div>
<!-- Carousel nav -->
<a class="carousel-control left" href="#myCarousel2" data-slide="prev">‹</a>
<a class="carousel-control right" href="#myCarousel2" data-slide="next">›</a>
</div>
</div>
</div>