创新互联Bootstrap5教程:Bootstrap5按钮

Bootstrap5 按钮

Bootstrap 5 提供了不同样式的按钮。

实例

<
button

type
=
"
button
"

class
=
"
btn
"
>
基本按钮
button
>

<
button

type
=
"
button
"

class
=
"
btn btn-primary
"
>
主要按钮
button
>

<
button

type
=
"
button
"

class
=
"
btn btn-secondary
"
>
次要按钮
button
>

<
button

type
=
"
button
"

class
=
"
btn btn-success
"
>
成功
button
>

<
button

type
=
"
button
"

class
=
"
btn btn-info
"
>
信息
button
>

<
button

type
=
"
button
"

class
=
"
btn btn-warning
"
>
警告
button
>

<
button

type
=
"
button
"

class
=
"
btn btn-danger
"
>
危险
button
>

<
button

type
=
"
button
"

class
=
"
btn btn-dark
"
>
黑色
button
>

<
button

type
=
"
button
"

class
=
"
btn btn-light
"
>
浅色
button
>

<
button

type
=
"
button
"

class
=
"
btn btn-link
"
>
链接
button
>

尝试一下 »

按钮类可用于 ,