bs的简单使用
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>bs的简单使用</title>
<link rel="stylesheet" type="text/css" href="bootstrap-3.3.7-dist/css/bootstrap.css">
<style type="text/css">
.z-btn {
width: 300px;
}
.row {
width: 100vw;
}
</style>
</head>
<body>
<div class="row">
<div class="btn btn-warning col-md-6 col-md-offset-3 z-btn">按钮</div>
</div>
<div class="row">
<div class="btn btn-warning z-btn center-block">按钮</div>
</div>
<span class="caret"></span>
<div class="dropup">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
列表
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu2">
<li><a href="#">oldboy</a></li>
</ul>
</div>
</body>
<script src="bootstrap-3.3.7-dist/js/jquery-3.3.1.min.js"></script>
<script src="bootstrap-3.3.7-dist/js/bootstrap.js"></script>
</html>