我有兩列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