<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css">
<script src="https://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
<script src="https://apps.bdimg.com/libs/bootstrap/3.3.0/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Badge</h2>
<p>The .badge class indicates new or unread items (will automatically collapse when there are no new or unread items, via CSS's :empty selector):</p>
<p><a href="#">Inbox <span class="badge">17</span></a></p>
</div>
</body>
</html>