<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn‘t work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="btn-group">
<button type="button" class="btn btn-danger">1</button>
<button type="button" class="btn btn-danger">2</button>
<button type="button" class="btn btn-danger">3</button>
<button type="button" class="btn btn-danger">4</button>
<button type="button" class="btn btn-danger">5</button>
</div>
<hr>toolbar</hr>
<div class="toolbar" type="toolbar">
<div class="btn-group">
<button type="button" class="btn btn-danger">1</button>
<button type="button" class="btn btn-danger">2</button>
<button type="button" class="btn btn-danger">3</button>
<button type="button" class="btn btn-danger">4</button>
<button type="button" class="btn btn-danger">5</button>
</div>
<div class="btn-group">
<button type="button" class="btn btn-danger">1</button>
<button type="button" class="btn btn-danger">2</button>
<button type="button" class="btn btn-danger">3</button>
<button type="button" class="btn btn-danger">4</button>
<button type="button" class="btn btn-danger">5</button>
</div>
<div class="btn-group">
<button type="button" class="btn btn-danger">1</button>
<button type="button" class="btn btn-danger">2</button>
<button type="button" class="btn btn-danger">3</button>
<button type="button" class="btn btn-danger">4</button>
<button type="button" class="btn btn-danger">5</button>
</div>
</div>
<hr>嵌套</hr>
<div class="btn-group">
<button type="button" class="btn btn-danger">1</button>
<button type="button" class="btn btn-danger">2</button>
<button type="button" class="btn btn-danger">3</button>
<button type="button" class="btn btn-danger">4</button>
<div class="btn-group">
<button class="btn btn-success dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown">
Dropdown
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
<li role="presentation" class="dropdown-header">Dropdown</li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Action</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Another action</a></li>
<li role="presentation" class="divider"></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Something else here</a></li>
</ul>
</div>
</div>
<hr>竖排</hr>
<div class="btn-group-vertical">
<button type="button" class="btn btn-danger">1</button>
<button type="button" class="btn btn-danger">2</button>
<button type="button" class="btn btn-danger">3</button>
<button type="button" class="btn btn-danger">4</button>
<div class="btn-group">
<button class="btn btn-success dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown">
Dropdown
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
<li role="presentation" class="dropdown-header">Dropdown</li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Action</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Another action</a></li>
<li role="presentation" class="divider"></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Something else here</a></li>
</ul>
</div>
</div>
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>