bootstrap select colored

<!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 = " select provinces" Multiple>
<the Option the Data-Content = "<span class = 'label label-Success'> Guangdong Province </ span>"> Guangdong Province </ option >
<Option Data-Content = "<span class = 'label label-info'> Guangxi </ span>"> Guangxi </ Option>
<Option Data-Content = "<span class = 'label label-warning' > Fujian </ span> "> Fujian </ Option>
<Option Data-Content =" <span class = 'Danger label-label'> Shandong Province </ span> "> Shandong Province </ Option>
</ SELECT >
</ div>
</ div>
</ div>

</body>
</html>

Reproduced in: https: //www.jianshu.com/p/a97ce97caeea

Guess you like

Origin blog.csdn.net/weixin_34399060/article/details/91071738