首页 > 其他 > 详细

bootstarp导航

时间:2016-11-20 13:26:43      阅读:208      评论:0      收藏:0      [点我收藏+]
<!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">
    <title>Bootstrap 101 Template</title>

    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <style>
      .container{
        border: 1px solid #ccc;
      }
    </style>
  </head>
  <body>
    <div>
  <!-- 标签页 -->
      <ul class="nav nav-tabs" role="tablist">
        <li role="presentation" class="active"><a href="#">Home</a></li><!-- active选择链接 -->
        <li role="presentation"><a href="#">Profile</a></li>
        <!-- 带下拉菜单的标签页 -->
        <li class="dropdown">
          <a class="dropdown-toggle" data-toggle="dropdown">Messages
            <span class="caret"></span>
          </a>
          <ul class="dropdown-menu" role="menu">
            <li role="presentation"><a href="#">Profile</a>
            </li>
            <li role="presentation"><a href="#">Prsdsig</a>
            </li>
            <li role="presentation" class="divider"></li>
            <li role="presentation" class="disabled"><a href="#">Pdddffe</a>
            </li>
          </ul><!-- dropdown-menu -->
        </li><!-- dropdown -->
      </ul><!-- nav nav-tabs -->
    <br>
  <!-- 胶囊式标签页 须使用 .nav-pills-->
      <ul class="nav nav-pills" role="tablist">
        <li role="presentation" class="active"><a href="#">Home</a></li><!-- active选择链接 -->
        <li role="presentation"><a href="#">Profile</a></li>
        <li role="presentation"><a href="#">fasfafa</a></li>
      </ul>
    <br>
  <!-- 胶囊是标签页垂直方向堆叠排列的只需添加 .nav-stacked  -->
      <ul class="nav nav-pills nav-stacked" role="tablist">
        <li role="presentation" class="active"><a href="#">Home</a></li><!-- active选择链接 -->
        <li role="presentation"><a href="#">Profile</a></li>
        <li role="presentation"><a href="#">fasfafa</a></li>
      </ul>
    <br>
    <!-- 两端对齐的标签页 只需添加 .nav-stacked -->
      <ul class="nav nav-pills nav-justified" role="tablist">
        <li role="presentation" class="active"><a href="#">Home</a></li><!-- active选择链接 -->
        <li role="presentation"><a href="#">Profile</a></li>
        <li role="presentation"><a href="#">fasfafa</a></li>
      </ul>
    </div>

<br>
    <!-- jQuery (necessary for Bootstrap‘s JavaScript plugins) -->
    <script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.min.js"></script>
  </body>
</html>

 

bootstarp导航

原文:http://www.cnblogs.com/xiaoyumi666/p/6082381.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!