简单的登录和注册页面——光标移动到button上有阴影效果

登录

<%--
  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>

效果图
登录

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值