近处的大树枝叶茂盛。小草叶子又肥又美。小花绚丽多姿。一阵阵风吹来,花草树木,一起奏出了森林交响曲,一只只蝴蝶随着交响曲跳起了舞呢。
nav导航栏
<nav role="navigation" class="navbar navbar-default"> <div class="container-fluid"></div> <div class="navbar-header"> <a rel="nofollow noopener noreferrer" href="#" class="navbar-brand"> 大大的logo </a> </div> <div > <ul class="nav navbar-nav"> <li> <a rel="nofollow noopener noreferrer" href="#" > 分类 </a> </li> <li> <a rel="nofollow noopener noreferrer" href="#" > 分类 </a> </li> <li> <a rel="nofollow noopener noreferrer" href="#" > 分类 <span class="caret"/> </a> </li> </ul> </div> </nav>
响应式的导航栏
<nav class="navbar navbar-default"> <div class="container-fluid"> <div class="navbar-header"> <button class="navbar-toggle" data-toggle="collapse" data-target="#one"> <span class="sr-only">切换导航</span> <span class="icon-bar"/> <span class="icon-bar"/> <span class="icon-bar"/> </button> <a rel="nofollow noopener noreferrer" href="#" class="navbar-brand"> BigLogo </a> </div> <div class="collapse navbar-collapse" id="one"> <ul class="nav navbar-nav"> <li> <a rel="nofollow noopener noreferrer" href="#"> 分类1 </a> </li> <li> <a rel="nofollow noopener noreferrer" href="#"> 分类2 </a> </li> <li> <a rel="nofollow noopener noreferrer" href="#"> 分类3 </a> </li> <li> <a rel="nofollow noopener noreferrer" href="#"> 分类4 </a> </li> </ul> </div> </div> </nav>
具有不同对齐风格和固定的导航栏
<nav class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a rel="nofollow noopener noreferrer" href="#" class="navbar-brand"> 前端万岁 </a> </div> <div> <ul class="nav navbar-nav navbar-right"> <li> <a rel="nofollow noopener noreferrer" href="#" > <span class="glyphicon glyphicon-user"/>注册</a></li> <li> <a rel="nofollow noopener noreferrer" href="#" > <span class="glyphicon glyphicon-log-in"/>登录</a></li> </ul> <ul class="nav navbar-nav navbar-left"> <li> <a rel="nofollow noopener noreferrer" href="#" > <span class="glyphicon glyphicon-user"/>注册</a></li> <li> <a rel="nofollow noopener noreferrer" href="#" > <span class="glyphicon glyphicon-log-in"/>登录</a></li> </ul> </div> </div> </nav>
面包屑导航(BreadCrumb)
<ol class="breadcrumb"> <li> <a rel="nofollow noopener noreferrer" href='#' > 首页 </a> </li> <li> <a hef="#" > Java </a> </li> <li class=active"> <a rel="nofollow noopener noreferrer" href="#"> Xxx文章 </a> </li> </ol>
层次导航,让我想起UC的极速模式的 X 级页面
以上所述是小编给大家介绍的BootStrap学习笔记之nav导航栏和面包屑导航,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对网站的支持!
以上就是BootStrap学习笔记之nav导航栏和面包屑导航。有志者,事竟成,破釜沉舟,百二秦关终属楚;苦心人,天不负,卧薪尝胆,三千越甲可吞吴!更多关于BootStrap学习笔记之nav导航栏和面包屑导航请关注haodaima.com其它相关文章!