gpt4 book ai didi

javascript - 如何使用 Bootstrap 使轮播在 1 列中使用 2 行

转载 作者:太空宇宙 更新时间:2023-11-04 14:03:18 25 4
gpt4 key购买 nike

根据我对行和列的理解,数字 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

最佳答案

你可以试试这个.. 给它们加上边框,这样你就可以测试它了。这应该有效

<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>

只需添加边框和自定义高度即可查看效果。确保您没有自定义 bootstrap css,如果您看到结果,稍后再做。

关于javascript - 如何使用 Bootstrap 使轮播在 1 列中使用 2 行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21322724/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com