.badge bg-secondary
.badge rounded-pill
.progress
.progress-bar
.progress-bar-striped 条纹
.progress-bar-animated 动画
<div class="progress">
<div class="progress-bar" style="width:70%">div>
div>
<div class="progress">
<div class="progress-bar bg-success" style="width:40%">
安全线
div>
<div class="progress-bar bg-warning" style="width:10%">
警告线
div>
<div class="progress-bar bg-danger" style="width:20%">
危险线
div>
div>
.spinner-border
.text-muted
.spinner-grow 闪烁
.spinnner-border-sm 加载效果大小
<button class="btn btn-primary" disabled>
<span class="spinner-grow spinner-grow-sm">span>
Loading..
button>
ul .pagination
li .page-link
<div class="container mt-3">
<h2>分页h2>
<p>要创建一个基本的分页可以在 ul 元素上添加 .pagination 类。然后在 li 元素上添加 .page-item 类:p>
<ul class="pagination">
<li class="page-item"><a class="page-link" href="#">Previousa>li>
<li class="page-item"><a class="page-link" href="#">1a>li>
<li class="page-item"><a class="page-link" href="#">2a>li>
<li class="page-item"><a class="page-link" href="#">3a>li>
<li class="page-item"><a class="page-link" href="#">Nexta>li>
ul>
div>
.active
<ul class="pagination justify-content-center">
.breadcrumb
.breadcrumb-item
.list-group
.list-group-item
.list-group-flush 移除列表边框
.list-group-horizontal 水平
.list-group-item-success 颜色
.card-body
.card-header body footer
.card-img-top bottom
<div class="card" style="width:400px">
<img class="card-img-top" src="img_avatar1.png" alt="Card image">
<div class="card-body">
<h4 class="card-title">John Doeh4>
<p class="card-text">Some example text.p>
<a href="#" class="btn btn-primary">See Profilea>
div>
div>
文字覆盖图片 .card-img-overlay
.dropdown
.dropdown-menu item
.dropdown.divider 分割线
.dropdown-header 标题
dropdown dropend dropstart 左右对齐
.dropdown-menu-end 向右弹出的下拉菜单
.dropup 向上弹出的上拉菜单
.dropstart 指定向左边弹出的下拉菜单
.dropdown-item-text 下拉菜单设置文本
.date-bs-toggle=collapse
.data-bs-parent
.nav
.nav-item
.nav-link
nav justify-content-center -end 左右对齐
nav flex-column 垂直导航
nav.tabs 选项卡
nav-pills 胶囊导航
nav-justified 导航等宽
nav nav-pills
<ul class="nav nav-pills">
<li class="nav-item">
<a class="nav-link active" href="#">Activea>
li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#">Dropdowna>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Link 1a>
<a class="dropdown-item" href="#">Link 2a>
<a class="dropdown-item" href="#">Link 3a>
div>
<div class="container mt-3">
<h2>选项卡下拉菜单h2>
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link active" href="#">Activea>
li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#">Dropdowna>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Link 1a>
<a class="dropdown-item" href="#">Link 2a>
<a class="dropdown-item" href="#">Link 3a>div>
li>
<ul class="nav nav-pills" role="tablist">
<li class="nav-item">
<a class="nav-link active" data-bs-toggle="pill" href="#home">Homea>
li>
<li class="nav-item">
<a class="nav-link" data-bs-toggle="pill" href="#menu1">Menu 1a>
li>
<li class="nav-item">
<a class="nav-link" data-bs-toggle="pill" href="#menu2">Menu 2a>
li>
ul>
<div class="tab-content">
<div class="tab-pane active container" id="home">...div>
<div class="tab-pane container" id="menu1">...div>
<div class="tab-pane container" id="menu2">...div>
div>
.navbar navbar-expand-sm 水平 导航栏