根据我对行和col的理解, 数字1将是.col-12的一行, 然后在一行中编号为2和3,但在中间使用两行旋转木马。可以吗?
<!--Carousel & Main Menu-->
<div class="container websiteheader">
<br>
<!--New Menu-->
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<a href="bim.htm"><img class="center-block" src="images/menu/icon-new.png"></a>
<h4 class="text-center">New</h4>
</div>
</div>
<!--New Menu-->
<div class="row">
<!-- Support Menu-->
<div class="col-md-2">
<img class="center-block" src="images/menu/icon-support.png">
<h4 class="text-center">SUPPORT</h4>
</div>
<!-- Support Menu-->
<!-- Carousel-->
<div id="myCarousel" class="carousel slide">
<div class="col-md-8">
<!--Carousel Bullets Indicators-->
<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 Bullets Indicators-->
<!--Carousel Item List-->
<div class="carousel-inner">
<div class="item active">
<img src="images/carousel/index/index-001.jpg" width="100%" alt="VNIX MY">
<div class="carousel-caption">
<h3>Title 1</h3>
<p>Para 1<br>
Para 2<br>
Para 3</p>
</div>
</div>
<div class="item">
<img src="images/about/index-002.jpg" width="100%" alt="VNIX MY">
<div class="carousel-caption">
<h3>Title 2</h3>
<p>This is slider 2 paragraph</p>
</div>
</div>
<div class="item">
<img src="images/about/index-003.jpg" width="100%" alt="VNIX MY">
<div class="carousel-caption">
<h3>Title 3</h3>
<p>This is slider 3 paragraph</p>
</div>
</div>
</div>
<!--Carousel Item List-->
<!-- Carousel nav -->
<a class="carousel-control left" href="#myCarousel" data-slide="prev">
<span class="icon-prev"></span>
</a>
<a class="carousel-control right" href="#myCarousel" data-slide="next">
<span class="icon-next"></span>
</a>
<!-- Carousel nav -->
</div>
</div>
<!-- Carousel-->
<!-- Services Menu-->
<div class="col-md-2">
<img class="center-block" src="images/menu/icon-services.png">
<h4 class="text-center">SERVICES</h4>
</div>
<!-- Services Menu-->
<div class="col-md-10">
<div class="col-md-2">
<img class="center-block" src="images/menu/icon-about_us.png">
<h4 class="text-center">ABOUT US</h4>
</div>
</div>
<div class="row">
<div class="col-md-2">
<img class="center-block" src="images/menu/icon-about_us.png">
<h4 class="text-center">ABOUT US</h4>
</div>
</div>
</div>
<br>
这就是我想要实现的目标http://s22.postimg.org/5h5n94s3l/image.jpg 这是我从代码http://s28.postimg.org/uf0kisou5/image.jpg
获得的答案 0 :(得分:1)
你可以尝试这个..给它们边框,以便你可以测试它。这应该工作
<div class = "navbar">
</div>
<div class = "navbar">
<div class = "row">
<div class = "col-sm-3">
<div class = "col-sm-12"></div>
<div class = "col-sm-12"></div>
</div>
<div class = "col-sm-6"></div>
<div class = "col-sm-3">
<div class = "col-sm-12"></div>
<div class = "col-sm-12"></div>
</div>
</div>
</div>
<div class = "navbar">
</div>
只需添加边框和自定义高度即可查看其实际效果。请确保您没有自定义引导程序css,如果看到结果,请稍后再执行。