Bootstrap 固定底部导航栏菜单
直接上代码:
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Nav_Bottom</title> <link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script> <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head><!-- 在头部引入bootstrap的css包与js包 --> <body> <div class="main_nav_bottom"> <nav class="navbar navbar-default navbar-fixed-bottom"> <div class="container" align="center"> <style> .nav-tabs { text-align: center; height: 40px; line-height: 40px; } </style> <ul class="nav nav-tabs nav-tabs-justified"> <div class="row" align="center"> <div class="col-md-4 col-sm-4 col-xs-4" align="center"><li><a href="#">Bootstrap1</a></li></div> <div class="col-md-4 col-sm-4 col-xs-4" align="center"><li><a href="#">Bootstrap2</a></li></div> <div class="col-md-4 col-sm-4 col-xs-4" align="center"><li><a href="#">Bootstrap3</a></li></div> </div> </ul> </div> </nav> </div> </body> </html>
最终效果图如下:
(本人微信号:Liberty-bcy)如果,你正在埋怨命运不眷顾,那请记住:命,是失败者的借口;运,是成功者的谦词。