【发布时间】:2018-05-23 09:09:29
【问题描述】:
如何将引导行与容器底部对齐?
像这样:
HTML
<main class="bd-masthead container-fluid" id="" role="main" style="padding-top:5rem;">
<div class="row">
<div class="col">
<h1 class="text-light">
LukeBank
</h1>
</div>
</div>
<div class="row" style="padding-top:10px">
<div class="col">
<button type="button" class="btn btn-outline-light">Button</button>
</div>
</div>
</main>
CSS
html, body {
height: 100%;
width: 100%;
}
main {
height: 100%;
background-image: url(/img/frontpage.bg.jpg);
background-position: center center;
background-size: cover;
}
.otherpart {
height: 100%;
background-color: white;
background-position: center bottom;
background-size: cover;
}
我尝试使用.align-bottom,但没有成功。
【问题讨论】:
-
你想附加在屏幕当前可见的View Port底部还是容器底部?
-
容器...
标签: html css bootstrap-4