如何在Bootstrap中将行固定到页面底部

Myt*_*thu 2 css html5 bootstrap-4

我已经使用bootstrap我想给页面的最后一行给出页面的底部,该行是固定的,也是响应大小.

小智 5

此行类需要具有以下属性:

.fixed-row-bottom { position: fixed; bottom: 0;}
Run Code Online (Sandbox Code Playgroud)

HTML代码:

<div class="row fixed-row-bottom">My fixed row</div>
Run Code Online (Sandbox Code Playgroud)


Cla*_*ire 1

如果您发布代码,就更容易回答。您将需要对元素应用固定位置,如下所示:

.element {
  position:fixed;
  bottom:0;
  width:100%;
}
Run Code Online (Sandbox Code Playgroud)