label .label label-default 默认的灰色标签 .label label-primary "primary" 类型的蓝色标签 .label label-success "success" 类型的绿色标签 .label label-info "info" 类型的浅蓝色标签 .label label-warning "warning" 类型的黄色标签 .label label-danger "danger" 类型的红色标签 用法:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>label</title> <link rel="stylesheet" href="../libs/bootstrap-3.3.7/css/bootstrap.css"> </head> <body> <div class="container" style="margin-top: 10px"> <span class="label label-default">label-default</span> </div> </body> </html>
Bootstrap—标签label和徽章badge
最新推荐文章于 2024-07-03 08:52:39 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)