<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="//apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css">
<p> .active 类表示按钮被点击:</p>
<button type="button" class="btn btn-default">默认按钮</button>
<button type="button" class="btn btn-default active">点击激活的默认按钮</button>
<button type="button" class="btn btn-info">信息按钮</button>
<button type="button" class="btn btn-info active">点击激活的信息按钮</button>
<script src="//apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="//apps.bdimg.com/libs/bootstrap/3.3.0/js/bootstrap.min.js"></script>