相关疑难解决方法(0)

Twitter Bootstrap 3 Sticky Footer

我一直在使用twitter bootstrap框架已经有一段时间了,他们最近更新到版本3!

我无法将粘性页脚粘到底部,我使用了twitter bootstrap网站提供的入门模板,但仍然没有运气,有什么想法吗?

html css twitter-bootstrap twitter-bootstrap-3

201
推荐指数
8
解决办法
33万
查看次数

Bootstrap 4将行对齐到容器的底部

如何将引导行对齐到容器的底部?

像这样: 像这样

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>
Run Code Online (Sandbox Code Playgroud)

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;  
}
Run Code Online (Sandbox Code Playgroud)

我尝试使用.align-bottom,但它没有用.

html css bootstrap-4

3
推荐指数
3
解决办法
1万
查看次数