# 1. Badges

<span class="badge text-bg-primary">primary</span>  

<span class="badge text-bg-secondary">secondary</span>  

<span class="badge text-bg-success">success</span>  

<span class="badge text-bg-danger">danger</span>  

<span class="badge text-bg-warning">warning</span>  

<span class="badge text-bg-info">info</span>  

<span class="badge text-bg-light">light</span>  

<span class="badge text-bg-dark">dark</span>  


# 2. Alerts

<div class="alert alert-primary" role="alert">
  This is a primary alert.
</div>

<div class="alert alert-secondary" role="alert">
  This is a secondary alert.
</div>

<div class="alert alert-success" role="alert">
  This is a success alert.
</div>

<div class="alert alert-danger" role="alert">
  This is a danger alert.
</div>

<div class="alert alert-warning" role="alert">
  This is a warning alert.
</div>

<div class="alert alert-info" role="alert">
  This is a info alert.
</div>

<div class="alert alert-light" role="alert">
  This is a light alert.
</div>

<div class="alert alert-dark" role="alert">
  This is a dark alert.
</div>


# 3. Cards

<div class="card text-bg-primary mb-3" style="max-width: 50rem;">
  <div class="card-header">Header</div>
  <div class="card-body">
    <h5 class="card-title">Primary card title</h5>
    <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
  </div>
</div>

<div class="card text-bg-secondary mb-3" style="max-width: 45rem;">
  <div class="card-header">Header</div>
  <div class="card-body">
    <h5 class="card-title">Secondary card title</h5>
    <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
  </div>
</div>

<div class="card text-bg-success mb-3" style="max-width: 40rem;">
  <div class="card-header">Header</div>
  <div class="card-body">
    <h5 class="card-title">Success card title</h5>
    <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
  </div>
</div>

<div class="card text-bg-danger mb-3" style="max-width: 35rem;">
  <div class="card-header">Header</div>
  <div class="card-body">
    <h5 class="card-title">Danger card title</h5>
    <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
  </div>
</div>

<div class="card text-bg-warning mb-3" style="max-width: 30rem;">
  <div class="card-header">Header</div>
  <div class="card-body">
    <h5 class="card-title">Warning card title</h5>
    <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
  </div>
</div>

<div class="card text-bg-info mb-3" style="max-width: 25rem;">
  <div class="card-header">Header</div>
  <div class="card-body">
    <h5 class="card-title">Info card title</h5>
    <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
  </div>
</div>

<div class="card text-bg-light mb-3" style="max-width: 20rem;">
  <div class="card-header">Header</div>
  <div class="card-body">
    <h5 class="card-title">Light card title</h5>
    <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
  </div>
</div>

<div class="card text-bg-dark mb-3" style="max-width: 15rem;">
  <div class="card-header">Header</div>
  <div class="card-body">
    <h5 class="card-title">Dark card title</h5>
    <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
  </div>
</div>


# 4. Colors
## 背景颜色
<p class="text-primary">Look, I'm in a well!</p>
<p class="text-warning">Look, I'm in a well!</p>
<p class="text-danger">Look, I'm in a well!</p>

## 背景情况
<p class="text-danger bg-primary">Look, I'm in a well!</p>
<p class="text-primary bg-warning">Look, I'm in a well!</p>
<p class="text-warning bg-danger">Look, I'm in a well!</p>


# 5. Collapse
## 显示内容
<a class="btn btn-primary text-white" data-bs-toggle="collapse" href="#collapse-1">
  Show content
</a>

<div class="collapse" id="collapse-1">
  <div class="card card-body">

- Content you want to display
  - Content you want to display
      
  </div>
</div>

## 隐藏内容
<a class="btn btn-secondary text-white" data-bs-toggle="collapse" href="#collapse-2">
  Hide content
</a>

<div class="collapse show" id="collapse-2">
  <div class="card card-body">

- Content you want to hide
  - Content you want to hide

  </div>
</div>


# 官方文件
- [点击此处了解徽章详情](https://getbootstrap.com/docs/5.3/components/badge/)
- [单击此处了解警报详情](https://getbootstrap.com/docs/5.3/components/alerts/)
- [点击此处了解贺卡详情](https://getbootstrap.com/docs/5.3/components/card/)
- [点击此处了解颜色详情](https://getbootstrap.com/docs/5.3/utilities/colors/)
- [点击此处查看折叠详情](https://getbootstrap.com/docs/5.3/components/collapse/)