css - Bootstrap如何定位?

标签 css twitter-bootstrap twitter-bootstrap-3

我如何定位 col-md-4 - 在 col-md-12 的底部?

(张贴图片) image

------------col-md-12----------------

(空白处)

---col-md-4---/---col-md-4---/---col-md-4---

------------结束col-md-12--------------------

<div class="container-fluid">
<div class="row">
    <div class="col-md-12 hero">
        <img src="http:/placehold.it/1600x800" alt="" class="img-responsive">
        <div class="col-md-4">
            <img src="http://placehold.it/400x300" alt="" class="img-responsive">
        </div>
        <div class="col-md-4">
            <img src="http://placehold.it/400x300" alt="" class="img-responsive">
        </div>
                <div class="col-md-4">
            <img src="http://placehold.it/400x300" alt="" class="img-responsive">
        </div>
    </div>    
</div>

最佳答案

<div class="container-fluid">
<div class="row">
    <div class="col-md-12 hero">
        <img src="http:/placehold.it/1600x800" alt="" class="img-responsive">
        <div class="row" id="pseudo-box">
             <div class="col-md-4">
                  <img src="http://placehold.it/400x300" alt="" class="img-responsive">
             </div>
             <div class="col-md-4">
                  <img src="http://placehold.it/400x300" alt="" class="img-responsive">
             </div>
             <div class="col-md-4">
                  <img src="http://placehold.it/400x300" alt="" class="img-responsive">
             </div>
        </div>
    </div>    
</div>

应用 #pseudo-box 并根据您的方便将其放置在父 div 中。

关于css - Bootstrap如何定位?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28210310/

相关文章:

javascript - 如何动态更改 react 中动态片段的样式(使用功能组件)?

javascript - 带过滤器的 Bootstrap 表 - zebra css

javascript - 如何使 Bootstrap Carousel 保持固定在导航栏下方?

html - 为不同的屏幕尺寸制作不同的 Bootstrap 列填充

html - 带箭头和阴影的圆 Angular 语音框。基于图像

css - Angular Material 主题覆盖

html - 与 IE9 相比,Firefox 似乎在大多数元素的顶部添加了 3px

css - 使用 bootstrap-4 的 Material 设计输入

javascript - 为什么我无法使用 Bootstrap 的大模态和/或小模态?

html - Bootstrap - 在跨越多列的导航栏中输入