bootstrap select 带颜色

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>联想控股</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="css/bootstrap-select.css" rel="stylesheet" type="text/css">
<script src="http://code.jquery.com/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-select.js"></script>
</head>
<body>
<div class="container">


<div class="row">
<label class="col-sm-3 control-label" style="line-height: 34px;margin-bottom: 20px;">选择用户:</label>
<div class="col-sm-6">
<select class="form-control selectpicker" title="请选择省份" multiple>
<option data-content="<span class='label label-success'>广东省</span>">广东省</option>
<option data-content="<span class='label label-info'>广西省</span>">广西省</option>
<option data-content="<span class='label label-warning'>福建省</span>">福建省</option>
<option data-content="<span class='label label-danger'>山东省</span>">山东省</option>
</select>
</div>
</div>
</div>

</body>
</html>

转载于:https://www.jianshu.com/p/a97ce97caeea

猜你喜欢

转载自blog.csdn.net/weixin_34399060/article/details/91071738