官术网_书友最值得收藏!

Creating breadcrumbs

To make use of Bootstrap breadcrumbs, we will add it to our web app. Note that we will do this step for learning purposes so that you will be able to create it when you need it.

Like pagination, Bootstrap offers a component for breadcrumbs as well. For that, create an ordered list just after the open tag div#main:

<div id="main" class="col-sm-12 col-md-6">

  <ol class="breadcrumb card">
    <li><a href="#">Home</a></li>
    <li><a href="#">Profile</a></li>
    <li class="active">Feed</li>
  </ol>
  …
</div>

The cool thing about Bootstrap breadcrumbs is that the separator bars are automatically added through :before and the content CSS option, so you do not need to worry about them.

Note that the .card class was added to the breadcrumbs component to keep the web app style. The following screenshot presents the result of breadcrumbs:

Creating breadcrumbs
主站蜘蛛池模板: 铜陵市| 余庆县| 白河县| 长汀县| 荣昌县| 澄江县| 万全县| 沙坪坝区| 革吉县| 寿光市| 山阳县| 景宁| 渝北区| 宣汉县| 方城县| 淳化县| 南康市| 雷州市| 长葛市| 惠水县| 福安市| 靖江市| 梅河口市| 鹤壁市| 清水河县| 宁陕县| 微山县| 黑龙江省| 宝应县| 库尔勒市| 专栏| 青川县| 依兰县| 宝鸡市| 翁源县| 丰都县| 牙克石市| 华蓥市| 朝阳县| 香格里拉县| 称多县|