我有两列Bootstrap布局,顶部有一个标题图片。如何在两列引导程序布局中移动一列?
<section class="header" style="background: url(header-image.jpg)"></section>
<div class="container-fluid">
<div class="row">
<div class="col-md-6 sectionOne">
<p>some long text</p>
</div>
<div class="col-md-6 sectionTwo">
<form>My form here</form>
</div>
</div>
</div>
如何把右列了(class= "sectionTwo"
),以覆盖标题背景图像(见下文)?
----------------
| |
| header image |
| --------|
|-------| |
| | 2 |
| 1 | |
| |--------|
| | |
----------------
我试着CSS相对定位父与position: absolute
& top: -100px
,对孩子,但是造成引导产生无响应的设计。
我想在手机上看到'sectionTwo',与现在一样。 – blsn
我不打算添加它。 – blsn
您可以在'sectionTwo'类中添加负边距,但是在较小的设备上它会超过'sectionOne'类,所以您需要检查断点并删除边距 – Shibi