出處:http://blog.csdn.net/flywaterfree/article/details/51078001
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Main_Nav_Bottom</title>
<link rel="stylesheet" href="../css/bootstrap.min.css" />
<script src="../js/jquery.min.js"></script>
<script src="../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>
1屡谐、添加.navbar-fixed-bottom類可使導(dǎo)航條固定在底部码撰;
2摘完、包含一個.[Container](http://lib.csdn.net/base/docker) 或 .container-fluid容器源织,讓導(dǎo)航條居中,并在兩側(cè)添加內(nèi)補(bǔ)(padding)宅倒;
3谎替、<ul class="nav nav-tabs nav-tabs-justified">nav-tabs(標(biāo)簽式導(dǎo)航) 床嫌、 nav-justified(等寬式);
4照筑、確定一個行row吹截,想要使導(dǎo)航條分為三段,則col-md-4 col-sm-4 col-xs-4凝危;
5波俄、因為想使導(dǎo)航條的文字水平垂直居中,就寫了個css