用HTML做一个简单的登录注册页面!Web

更新时间: 2025-02-19

分类 html/css 难易度 入门级

0.99

下载权限

报错 / 举报
关注
自动发货

 

<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<!DOCTYPE html>
<html lang="en">
 
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <style>
        body {
            background: url(https://img.alicdn.com/imgextra/i3/1881288151/O1CN01EcwJS72A5DMi3hDzr_!!1881288151.jpg) no-repeat;
            background-size: 100% 130%;
        }
 
        #login_box {
            width: 20%;
            height: 400px;
            background-color: rgba(0, 0, 0, 0.36);
            margin: auto;
            margin-top: 10%;
            text-align: center;
            border-radius: 10px;
            padding: 50px 50px;
        }
 
        h2 {
            color: rgba(255, 255, 255, 0.55);
            margin-top: 5%;
        }
 
        span {
            color: rgb(83, 83, 83);
        }
 
        input {
            border: 0;
            width: 70%;
            font-size: 20px;
            color: #646708;
            background: transparent;
            border-bottom: 2px solid rgba(128, 32, 10, 0.65);
            padding: 8px 16px;
            outline: none;
            margin-top: 10px;
        }
        
 
        button {
            margin-top: 40px;
            width: 50%;
            height: 30px;
            border-radius: 10px;
            border: 0;
            color: #d05530;
            text-align: center;
            line-height: 30px;
            font-size: 15px;
            background-image: linear-gradient(to right, rgb(147, 70, 185), #a0f1ea);
        }
 
        li {
            margin-top: 16px;
            color: #46acb9;
        }
 
        a {
            margin-top: 10px;
            color: #467cb9;
        }
</style>
</head>
 
<body>
<div id="login_box">
    <h2>用户登录</h2>
    <div id="input_box">
        <input type="text" placeholder="请输入用户名">
    </div>
    <div class="input_box">
        <input type="password" placeholder="请输入密码">
    </div>
    <button>登录</button>
    <table>
        <tr>
            <td style="width:200%;height:14px;font-size:14px;border:0">
            </td>
        </tr>
    </table>
    <li>没有帐户?
        <a href="登录.html">点击注册</a>
    </li>
</div>
</body>
</html>
下载地址
index.zip
0.00 MB
嘿,我来帮您