<!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">
<title>Bootstrap 101 Template</title>
<!-- 引入bootstrap提供好的css -->
<link href="../css/bootstrap.css" rel="stylesheet">
<!-- jQuery 是Bootstrap 的基础 -->
<script src="../js/jquery-3.2.1.min.js"></script>
<!-- Bootstrap自己提供的js。 -->
<script src="../js/bootstrap.js"></script>
</head>
<body>
<!--模态框: 只允许操作最上面的一层 -->
<!-- 按钮 -->
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
Launch demo modal
</button>
<!-- 模态框 -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document"><!--modal-dialog 模态对话框-->
<div class="modal-content"><!--modal-content 模态框的内容-->
<div class="modal-header"><!--模态框的头-->
<!--关闭的X-->
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">标题</h4><!--标题-->
</div>
<div class="modal-body"><!--模态框的体-->
<form>
<div class="form-group">
<label for="usernameId">姓名</label>
<input type="email" class="form-control" id="usernameId" placeholder="请输入姓名">
</div>
<div class="form-group">
<label for="gender1">性别</label>
<input type="radio" class="form-inline" id="gender1" name="gender" > 男
<input type="radio" class="form-inline" id="gender2" name="gender" > 女
</div>
<div class="form-group">
<label for="mydate">生日</label>
<input type="date" class="form-control" id="mydate" >
</div>
<div class="form-group">
<label for="stu">学历</label>
<select id="stu" class="form-control">
<option>小学</option>
<option>小学</option>
<option>小学</option>
<option>小学</option>
</select>
</div>
<!--
1.html align="center"
2.css style="text-align: center;"
3.bootstrap提供的居中 text-center
-->
</form>
</div>
<div class="modal-footer"><!--模态框的脚-->
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
<button type="button" class="btn btn-primary">保存</button>
</div>
</div>
</div>
</div>
</body>
</html>