分页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">
    <title>Bootstrap 101 Template</title>

    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
  </head>
  <body>
    <nav>
  <!-- 默认分页 -->
    <!-- 禁用.disabled 和激状态.active 和尺寸加 pagination-lg -->
      <ul class="pagination pagination-lg">
        <li class="disabled"><a href="#">&laquo;</a></li>
        <li class="active"><a href="http://www.baidu.com" target="_banlk">1</a></li>
        <li><a href="http://www.taobao.com">2</a></li>
        <li><a href="#">3</a></li>
        <li><a href="#">4</a></li>
        <li><a href="#">5</a></li>
        <li><a href="#">&raquo;</a></li>
      </ul>
    <!-- 翻页链接居中对齐 -->
      <ul class="pager">
        <li><a href="#">下一页</a></li>
        <li><a href="#">上一页</a></li>
      </ul>
    <!-- 翻页链接左右对齐 -->
      <ul class="pager">
        <li class="previous"><a href="#">下一页</a></li>
        <li class="next"><a href="#">上一页</a></li>
      </ul>
    </nav>
<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>

 

posted @ 2016-11-20 15:08  米小玉  阅读(175)  评论(0编辑  收藏  举报