<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
<title></title>
<link rel="stylesheet" href="css/bootstrap.css"/>
<script src="js/jquery.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h1>堆叠表单</h1>
<form action="">
<!-- form-group堆叠表单(全屏宽度)-->
<!--form-control/form-check/form-check-inline/form-check-input/form-check-label 样式类-->
<div class="form-group">
用户名称:<input type="text" class="form-control"/>
</div>
<div class="form-group">
用户密码:<input type="password" class="form-control"/>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input"/>自动登录
</div>
<hr/>
<h1>水平表单</h1>
<!--form-inline:内联表单-水平方向-->
<div class="form-inline">
用户名称:<input type="text" class="form-control"/>
用户密码:<input type="password" class="form-control"/>
</div>
<!-- 注意:
1.form-inline:在屏幕宽度小于576px时为垂直堆叠,如果屏幕宽度大于等于576px时表单才会显示为一个水平线上。---->
</form>
</div>
<br/><br/><br/><br/><br/><br/>
</body>
</html>