[Bootstrap] 7. Working Herader

<header class="navbar navbar-default navbar-static-top">
    <div class="container">
        <div class="navbar-header">
          <a href="index.html" class="navbar-brand">QuickReader Report</a>
          <button type="button" class="navbar-toggle" data-toggle='collapse' data-target='.navbar-collapse'>
              <span class="sr-only">Toggle Navigation</span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
          </button>
        </div>
        <ul class="nav navbar-nav navbar-right collapse navbar-collapse text-center">
            <li><a href='#'>Serial</a></li>
            <li><a href='#'>File</a></li>
            <li><a href='#'>User</a></li>
        </ul>
    </div>
</header>

 

Header with dropdown:

<header class="navbar navbar-default navbar-static-top">
    <div class="container">
        <div class="navbar-header">
          <a href="index.html" class="navbar-brand">QuickReader Report</a>
          <button type="button" class="navbar-toggle" data-toggle='collapse' data-target='.navbar-collapse'>
              <span class="sr-only">Toggle Navigation</span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
          </button>
        </div>
        <ul class="nav navbar-nav navbar-right collapse navbar-collapse text-center">
            <li><a href='#'>Serial</a></li>
            <li><a href='#'>File</a></li>
            <li><a href='#'>User</a></li>
            <li>
                <a href='more.html' data-target="#" data-toggle="dropdown" class="dropdown-toggle">
                    More<span class="caret"></span>
                </a>
                <ul class="dropdown-menu">
                    <li><a href="#">Something 1</a></li>
                    <li class="divider"></li>
                    <li><a herf="#">Something 2</a></li>
                </ul>
            </li>
        </ul>
    </div>
</header>

 

posted @ 2015-03-07 22:53  Zhentiw  阅读(212)  评论(0编辑  收藏  举报