一.Servlet登录界面增加样式
新建以下JAVA文件和jsp文件
实现结果如下
在网上找到喜欢的css样式然后下载
我的下载链接 http://www.mycodes.net/190/7.htm
index中代码
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
<title>后台登录</title>
<link href="css/login.css" type="text/css" rel="stylesheet">
</head>
<body>
<div class="login">
<div class="message">用户登录</div>
<div id="darkbannerwrap"></div>
<form method="post" action="/login">
<input name="action" value="login" type="hidden">
<input name="username" placeholder="用户名" required="" type="text">
<hr class="hr15">
<input name="password" placeholder="密码" required="" type="password">
<hr class="hr15">
<input value="登录" style="width:100%;"