登录
<%--
Created by IntelliJ IDEA.
User: hp
Date: 2019/3/14
Time: 18:05
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>登录</title>
<style>
body {
background-color:#b0c4de;
}
input{
border: 1px solid #ccc;
padding: 17px 30px;
border-radius: 10px;
padding-left:15px;
}
.button {
background-color: slateblue;
color: white;
padding: 15px 32px;
text-align: center;
border-radius: 10px;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
-webkit-transition-duration: 0.4s;
transition-duration: 0.4s;
}
.button2:hover {
box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
}
</style>
</head>
<body >
<h2 align="center">欢迎登录</h2>
<form align="center">
<input type="text" placeholder="用户名" id="name"/><br/><br/>
<input type="password" placeholder="密码" id="password"/><br/><br/>
<button id="login" class="button button2">登 录</button><br/><br/>
<p>还没有账户? <a href="/jsp/registered.jsp">立刻创建</a>
</form>
</body>
</html>
注册
<%--
Created by IntelliJ IDEA.
User: hp
Date: 2019/3/14
Time: 18:06
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>Title</title>
<link href="${pageContext.request.contextPath}/css/login.css" type="text/css" rel="stylesheet">
<style>
body {
background-color:#b0c4de;
}
input{
border: 1px solid #ccc;
padding: 17px 30px;
border-radius: 10px;
padding-left:15px;
}
.button {
background-color: slateblue;
color: white;
padding: 15px 32px;
text-align: center;
border-radius: 10px;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
-webkit-transition-duration: 0.4s;
transition-duration: 0.4s;
}
.button2:hover {
box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
}
</style>
</head>
<body>
<h2 align="center">欢迎注册</h2>
<form align="center" class="div">
<input type="text" placeholder="用户名" id="r_user_name"/><br/><br/>
<input type="password" placeholder="密码" id="r_password" /><br/><br/>
<input type="text" placeholder="电子邮件" id="r_emial"/><br/><br/>
<button class="button button2" id="create">创建账户</button><br/><br/>
<p>已经有了一个账户? <a href="/jsp/login.jsp">立刻登录</a>
</form>
</body>
</html>
效果图