【发布时间】:2018-07-16 20:44:39
【问题描述】:
Bootstrap 是否支持在 Carousel 而不是 carousel-item -s 中显示网格列或行?这个想法是有一个复杂的网格列结构,它们可以像轮播项目一样相互交换。例如,如果我们有以下网格:
<div class="container">
<div class="row" id="row1">
<div class="col col-6-sm">
<!-- further hierarchy -->
</div>
<div class="col col-6-sm">
<!-- further hierarchy -->
</div>
</div>
<div class="row" id="row2">
<div class="col col-6-sm">
<!-- further hierarchy -->
</div>
<div class="col col-6-sm">
<!-- further hierarchy -->
</div>
</div>
<div class="row" id="row3">
<div class="col col-6-sm">
<!-- further hierarchy -->
</div>
<div class="col col-6-sm">
<!-- further hierarchy -->
</div>
</div>
</div>
我希望能够将 row1、row2 和 row3 div 表示为轮播项目。 或者如果 carousel-item 支持在其容器中嵌套网格元素,我可以简单地将网格层次结构包装在 carousel-item 中?
【问题讨论】:
-
您可以在以下链接中找到答案:stackoverflow.com/questions/40393210/…
标签: css twitter-bootstrap bootstrap-4