bootstrap:navbar-static-bottom
2020-06-06 06:48
387 查看
botstrap静止在页面底部
第一篇csdn文章
转自https://blog.csdn.net/css_aaa/article/details/82974924
Bootstrap本身提供了navbar-fixed-top 、navbar-fixed-bottom 、navbar-static-top三种方式使用导航条,却无法解决此问题,我们需要navbar-static-bottom。
需要添加的CSS:
<style type="text/css"> html { position: relative; min-height: 100%; } body { margin-bottom: 60px; } .footer { position: absolute; bottom: 0; width: 100%; /* Set the fixed height of the footer here */ height: 60px; background-color: #f5f5f5; } </style>
HTML:
<html> ... <body> ... <div class="container"> </div> ... <footer class="footer"> ...页脚内容... </footer> </body> </html>
相关文章推荐
- Bootstrap 更改Navbar默认样式
- Bootstrap 3之美05-排版、Button、Icon、Nav和NavBar、List、Table、Form
- Bootstrap迁移系列 - Navbar
- 升级后的bootstrap3的navbar-brand、navbar-collapse、navbar-toggle、navbar-header、navbar-text、navbar-btn的小实验
- storyboard设置hidesBottomBarWhenPushed时 界面跳转时tabbar会延迟一下再消失问题解决 以及设置后跳转navBar显示问题
- bootstrap导航栏.nav与.navbar区别
- Bootstrap 组件之 Navbar
- bootstrap static modal
- Bootstrap迁移系列 - Navbar
- express 项目前后台公用样式 /static/js/bootstrap.min.js
- navbar (Bootstrap)
- Bootstrap 3: 菜单居中 Center content in responsive bootstrap navbar
- 升级后的bootstrap3的navbar-brand、navbar-collapse、navbar-toggle、navbar-header、navbar-text、navbar-btn的小实验
- Bootstrap navbar 背景颜色、背景图和字体颜色修改,颜色修改不显示的问题
- Bootstrap Navbar
- Bootstrap3 navbar导航条居中显示
- bootstrap navBar demo
- bootstrap源码分析之form、navbar
- Bootstrap导航条navbar
- bootstrap导航栏.nav与.navbar区别