Bootstrap4 旋转


加载器

要创建加载器,请使用.spinner-border类:

加载中..

示例

<div class="spinner-border"></div>
亲自试一试 »

彩色加载器

使用任何文本颜色实用程序为微调器添加颜色:

加载中..
加载中..
加载中..
加载中..
加载中..
加载中..
加载中..
加载中..
加载中..

示例

<div class="spinner-border text-muted"></div>
<div class="spinner-border text-primary"></div>
<div class="spinner-border text-success"></div>
<div class="spinner-border text-info"></div>
<div class="spinner-border text-warning"></div>
<div class="spinner-border text-danger"></div>
<div class="spinner-border text-secondary"></div>
<div class="spinner-border text-dark"></div>
<div class="spinner-border text-light"></div>
亲自试一试 »


种植纺纱机

使用.spinner-grow如果您希望加载器/加载器增长而不是 "spin":

加载中..
加载中..
加载中..
加载中..
加载中..
加载中..
加载中..
加载中..
加载中..

示例

<div class="spinner-grow text-muted"></div>
<div class="spinner-grow text-primary"></div>
<div class="spinner-grow text-success"></div>
<div class="spinner-grow text-info"></div>
<div class="spinner-grow text-warning"></div>
<div class="spinner-grow text-danger"></div>
<div class="spinner-grow text-secondary"></div>
<div class="spinner-grow text-dark"></div>
<div class="spinner-grow text-light"></div>
亲自试一试 »

加载器尺寸

使用.spinner-border-sm或者.spinner-grow-sm创建一个更小的微调器:

加载中..
加载中..

示例

<div class="spinner-border spinner-border-sm"></div>
<div class="spinner-grow spinner-grow-sm"></div>
亲自试一试 »

微调按钮

您还可以向按钮添加带有或不带有文本的微调器:

示例

<button class="btn btn-primary">
  <span class="spinner-border spinner-border-sm"></span>
</button>

<button class="btn btn-primary">
  <span class="spinner-border spinner-border-sm"></span>
  Loading..
</button>

<button class="btn btn-primary" disabled>
  <span class="spinner-border spinner-border-sm"></span>
  Loading..
</button>

<button class="btn btn-primary" disabled>
  <span class="spinner-grow spinner-grow-sm"></span>
  Loading..
</button>
亲自试一试 »