Bootstrap breadcrumb navigation
Breadcrumbs are a display method based on website hierarchical information. Taking a blog as an example, breadcrumbs can display publication date, categories, or tags. They represent the current page's position within the navigation hierarchy.
Breadcrumbs in Bootstrap is a simple unordered list with .breadcrumb class. Separators will be automatically added via the class shown below in CSS (bootstrap.min.css):
.breadcrumb > li + li:before {
color: #CCCCCC;
content: "/ ";
padding: 0 5px;
}
color: #CCCCCC;
content: "/ ";
padding: 0 5px;
}
The following example demonstrates breadcrumb navigation:
Example
<!DOCTYPE html> <html> <head> <title>Bootstrap 实例 - 面包屑导航</title> <link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet"> <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script> <script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></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>
Run Instance»
Click the "Run Instance" button to view the online instance
##