When the whole world is about to rain, let's make it clear in our heart together

热爱前端开发,专注于前端

bootstrap-导航三

<!DOCTYPE html>  
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
<title></title>
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
<script src="http://cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
</head>
<body>
<!-- 导航依赖于nav类nav-tabs类依赖nav类 -->
        <ul  class="nav  nav-tabs">
                <li  role="presentation"  class="active"><a href="#">Home</a></li>
                <li  role="presentation"  class=""><a href="#">Profile</a></li>
                <li  role="presentation"  class=""><a href="#">Messages</a></li>
         </ul>
<!--  胶囊式标签页 竖直排列nav-stacked-->
       <ul  class="nav  nav-pills  nav-stacked">
                <li  role="presentation"  class="active"><a href="#">Home</a></li>
                <li  role="presentation"  class=""><a href="#">Profile</a></li>
                <li  role="presentation"  class=""><a href="#">Messages</a></li>
         </ul>  
<!--  两端对齐导航nav-justified可实现导航均列对齐-->   
           <ul  class="nav  nav-tabs  nav-justified">
                <li  role="presentation"  class="active"><a href="#">Home</a></li>
                <li  role="presentation"  class=""><a href="#">Profile</a></li>
                <li  role="presentation"  class=""><a href="#">Messages</a></li>
         </ul>  <br><br>

<!-- 带下拉列表的标签页 一般将下拉式的放到最后面,否则会出现问题-->
 <ul  class="nav  nav-pills">
              
                <li  role="presentation"  class="divider"></li>    
                <li  role="presentation"  class=""><a href="#">Profile</a></li>
                <li  role="presentation"  class=""><a href="#">Messages</a></li>
                <li  role="presentation"  class="dropdown">
                        <a  class="dropdown-toggle"  data-toggle="dropdown"  href="#"  role="button"  aria-haspopup="true"  aria-expanded="false">
                        Dropdown<span  class="caret"></span></a>
                       <ul  class="dropdown-menu">
                                     <li><a  href="#">Action</li>
                                    <li><a  href="#">Action  111</li>
                                    <li><a  href="#">Action  222</li>
                                    <li><a  href="#">Action  333</li>
                       </ul>
                  </li>  
</ul>
<!-- 导航条 collapsed表示折叠-->
<nav  class="navbar  navbar-default">
            <div  class="container-fluid">
                       <div  class="navbar-header">
                                         <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                                        <span class="sr-only">Toggle navigation</span>
                                        <span class="icon-bar"></span>
                                        <span class="icon-bar"></span>
                                        <span class="icon-bar"></span>
                                        </button>
                                        <a class="navbar-brand" href="#">

                                        brand
                                        </a>
                       </div>
                  
                        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                                      <ul class="nav navbar-nav">
                                                    <li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li>
                                                    <li><a href="#">Link</a></li>
                                                    <li class="dropdown">
                                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
                                                                <ul class="dropdown-menu">
                                                                                <li><a href="#">Action</a></li>
                                                                                <li><a href="#">Another action</a></li>
                                                                                <li><a href="#">Something else here</a></li>
                                                                                <li role="separator" class="divider"></li>
                                                                                <li><a href="#">Separated link</a></li>
                                                                                <li role="separator" class="divider"></li>
                                                                                <li><a href="#">One more separated link</a></li>
                                                                 </ul>
                                                   </li>
                                      </ul>
                                      <form class="navbar-form navbar-left" role="search">
                                                    <div class="form-group">
                                                      <input type="text" class="form-control" placeholder="Search">
                                                    </div>
                                                    <button type="submit" class="btn btn-default">Submit</button>
                                      </form>
                                      <ul class="nav navbar-nav navbar-right">
                                                    <li><a href="#">Link</a></li>
                                                    <li class="dropdown">
                                                                      <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
                                                                    <ul class="dropdown-menu">
                                                                                    <li><a href="#">Action</a></li>
                                                                                    <li><a href="#">Another action</a></li>
                                                                                    <li><a href="#">Something else here</a></li>
                                                                                    <li role="separator" class="divider"></li>
                                                                                    <li><a href="#">Separated link</a></li>
                                                                    </ul>
                                                    </li>
                                      </ul>
                          </div><!-- navbar-collapse 折叠-->
            </div>
</nav>
<!-- button中的三横 -->
<br><br><br>
<div class="navbar-header">
                  <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                   </button>
                   <a class="navbar-brand" href="#">Brand</a>
</div>
  <!-- 表单navbar-form可以呈现较好的垂直对齐 -->
  <form  class="navbar-form  navbar-left"  role="search">
               <div  class="form-group">
                                <input  type="text"  class="form-control"  placeholder="search">
               </div>
               <button   type="submit"  class="btn  btn-default">submit</button>
</form>
<!--  navbar-btn 实现垂直居中navbar-fixed-top固定在顶部navbar-fixed-bottom-->
<nav  class="navbar  navbar-inverse  navbar-fixed-top">
            <div  class="container-fluid">
                       <div  class="navbar-header">
                                         <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                                        <span class="sr-only">Toggle navigation</span>
                                        <span class="icon-bar"></span>
                                        <span class="icon-bar"></span>
                                        <span class="icon-bar"></span>
                                        </button>
                                        <a class="navbar-brand" href="#">

                                        brand
                                        </a>
                       </div>
                        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                                      <ul class="nav navbar-nav">
                                                    <li class="active"><a href="#">Home <span class="sr-only">(current)</span></a></li>
                                                    <li><a href="#">Link</a></li>
                                                    <li><a href="#">link2</a></li>
                                                    <li><a href="#">Link3</a></li>
                                        </ul>
                          </div>
                   
             </div>  
</nav>

    <button  type="button"  class="btn  btn-default  navbar-btn">sign  in</button>
    <p  class="navbar-text  bavbar-right">signed  in as  mark  <a href="#"   class="navbar-link">otto</a></p>
    <!--  navbar-link有颜色显示-->

<!--  路劲导航-->
<ol  class="breadcrumb">
         <li><a href="#">Home</li>
         <li><a href="#">Library</li>
         <li  class="active"><a href="#">Data</li>
</ol>
<br><br>
<!--  分页 类-->

<nav>
         <ul  class="pagination">
                <li>
                    <a href="#" aria-label="Previous">
                     <span aria-hidden="true">&laquo;</span>
                    </a>
              </li>
                 <li  class="active"><a  href="#">1</a></li>
                 <li><a  href="#">2</a></li>
                 <li><a  href="#">3</a></li>
                 <li><a  href="#">4</a></li>
                 <li><a  href="#">5</a></li>
                <li><a  href="#"  aria-label="next"><span  aria-hidden="true">&raquo;</span></a></li>
            </ul>
</nav>
<br><br>
<nav>
        <ul class="pagination  pagination-lg">
               <li  class="disabled">
                   
                     <span aria-hidden="true">&laquo;</span>
                   
              </li>
                <li  class="active"><a href="#">1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">4</a></li>
                <li><a href="#">5</a></li>
             <li>
                     <a href="#" aria-label="Next">
                     <span aria-hidden="true">&raquo;</span>
                     </a>
             </li>
         </ul>
</nav>
<!--  翻页-->
<nav>
           <ul  class="pager">
                         <li  class="active"><a href="#">previous</a></li>
                         <li><a href="#">next</a></li>  
           </ul>
</nav>
<!--  对齐链接 -->
<nav>
            <ul  class="pager">
                <li  class="previous  disabled"><a href="#"><span  aria-hidden="true">&larr;</span>older</a></li>
                <li  class="next"><a href="#">newer<span  aria-hidden="true">&rarr;</span></a></li>
            </ul>
</nav>

<!--  标签-->
<h3>example  heading<span  class="label  label-danger">new</span></h3>
<!-- 标签横向排列 -->
<span  class="label  label-default">default</span>
<span  class="label  label-primary">primary</span>
<span  class="label  label-success">success</span>
<span  class="label  label-info">info</span>
<span  class="label  label-warning">warning</span>
<span  class="label  label-danger">danger</span>
<!--徽章  -->
<a  href="#">Inbox<span  class="badge">42</span></a>
<button  class="btn  btn-primary"  type="button">
    Message<span  class="badge">4</span>
</button>
<!--  适配导航元素的激活状态-->
<ul  class="nav  nav-pills"  role="tablist">
         <li  role="presentation"  class="active"><a  href="#">Home<span  class="badge">3</span></a></li>
         <li  role="presentation"><a  href="#">Profile</a></li>
         <li   role="presentation"><a  href="#">Message<span  class="badge">4</span></a></li>
</ul>

<!--  巨幕 Jumbotron,将其包含在container类里面,可以实现与容器一样宽-->
<div  class="jumbotron">
             <div  class="container">
                          <h1>Hello,world</h1>
                           <p>this  ia  a  simple  hero  unit,a  simple  jumbotron</p>
                           <p><a  class="btn  btn-primary  btn-lg"  href="#"  role="button">Learn  more</a></p>
             </div>
</div>
<!-- 页头 -->
<div  class="page-header">
             <h1>Example  page  header<small>subtext  for  header</small></h1>
</div>
<!--  缩略图thumbnail -->
<div  class="row">
                <div  class="col-xs-6   col-md-3">
                        <div  class="thumbnail">
                                     <img src="111.png">
                                     <div  class="caption">
                                                  <h3>Thumbnail  label</h3>
                                                  <p><a  href="#"   class="btn  btn-primary "  role="button">Button</a></p>
                                     </div>
                        </div>
                 </div>
                 <!-- 第二个 -->
                
               
</div>
<!--警告框,提供一些灵活的预定义消息,为常见的用户动作提供反馈消息alert类-->

<div  class="alert  alert-success"   role="alert">22222</div>
<div  class="alert  alert-info"   role="alert">333333</div>
<div  class="alert  alert-warning"   role="alert">444444</div>
<div  class="alert  alert-danger"   role="alert">555555</div>

<!-- 为警告框提供关闭按钮 -->
<div  class="alert  alert-warning  alert-dismissible"   role="alert">
       <button  type="button"  class="close"  data-dismiss="alert"  aria-label="close">
                <span  aria-hidden="true">&times;</span>
       </button>
       <strong>warning</strong>better  check  yourself,you  are  not  looking  too  good.
</div>
<!-- data-dismiss="alert"为确保在所有设备上的正确行为 -->

<!-- 进度条 -->
<div  class="progress">
          <div  class="progress-bar"   role="progressbar"  aria-valuenow="60"  aria-valuemax="100"  aria-valuemin="0"    style="width:60%;">
         60%
</div>
<!-- 设置最低宽度 -->
<div  class="progress">
           <div  class="progress-bar  progress-bar-success"  role="progressbar"  aria-valuenow="0"  aria-valuemin="0"  aria-valuemax="100"  style="min-width:2em;">0%
           </div>
</div>
<p>11111111</p>
<div  class="progress">
           <div  class="progress-bar"  role="progressbar"  aria-valuenow="2"  aria-valuemin="0"  aria-valuemax="100"  style="min-width:2em;width:2%;">2%
           </div>

</div>
</body>
</html>

 

posted @ 2016-06-05 17:32  婷风  阅读(160)  评论(0编辑  收藏  举报