Bootstrap 面包屑導航(Breadcrumbs)

面包屑導航(Breadcrumbs)是一種基于網(wǎng)站層次信息的顯示方式。以博客為例,面包屑導航可以顯示發(fā)布日期、類別或標簽。它們表示當前頁面在導航層次結構內的位置。

Bootstrap 中的面包屑導航(Breadcrumbs)是一個簡單的帶有 .breadcrumb class 的無序列表。分隔符會通過 CSS(bootstrap.min.css)中下面所示的 class 自動被添加:

.breadcrumb > li + li:before {
    color: #CCCCCC;
    content: "/ ";
    padding: 0 5px;
}

下面的實例演示了面包屑導航:

<!DOCTYPE html>
<html>
<head>
   <title>Bootstrap 實例 - 面包屑導航</title>
   <link  rel="external nofollow" target="_blank"  rel="stylesheet">
   <script src="http://cdn.bootcss.com/jquery/2.1.1/jquery.min.js" rel="external nofollow" ></script>
   <script src="http://cdn.bootcss.com/bootstrap/3.3.6/js/bootstrap.min.js" rel="external nofollow" ></script>
</head>
<body>

<ol class="breadcrumb">
  <li><a href="#">Home</a></li>
  <li><a href="#">2013</a></li>
  <li class="active">十一月</li>
</ol>


</body>
</html>

嘗試一下 ?

結果如下所示: