用bootstrap写了一个登录页面,其中注册和重置密码采用了模态框,效果如下:
代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>登录</title>
<!-- 引入 jquery、Bootstrap -->
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<!-- 登录表单 -->
<div class="login-form">
<center><span>管理系统</span></center>
<div class="form-group">
<label for="usernamel">用户名</label>
<input type="text" class="form-control" id="username" placeholder="请输入您的用户名或手机号">
</div>
<div class="form-group">
<label for="password">密码</label>
<input type="password" class="form-control" id="password" placeholder="请输入您的密码">
</div>
<div class