直接看例子:
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="../../css/bootstrap.min.css" rel="stylesheet">
<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
<script src="../../js/bootstrap.min.js"></script>
<title>标签</title>
</head>
<body>
<div class="container">
<div class="page-header">
<h1>标签</h1>
</div>
<div>
<p><button class="label label-danger">danger</button></p>
<p><span class="label label-success">success</span></p>
<p><span class="label label-primary">Primary</span></p>
</div>
</div>
</body>
</html>
效果如下:
注意其中的差异。