<!DOCTYPE html>
<html>
<head>
    <title>用户注册页面</title>
    <style>
        .container {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }
        .login-wrapper {
            width: 400px;
            background-color: #f7f7f7;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        }
        .header {
            font-size: 24px;
            font-weight: 700;
            text-align: center;
            margin-bottom: 20px;
        }
        .form-wrapper {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .input-item {
            width: 100%;
            padding: 10px;
            margin-bottom: 20px;
            border-radius: 5px;
            border: 1px solid #ccc;
            font-size: 16px;
        }
        .input-item:focus {
            outline: none;
            border-color: #1abc9c;
        }
        input[type="submit"] {
            background-color: #1abc9c;
            color: #fff;
            padding: 10px 20px;
            border-radius: 5px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        input[type="submit"]:hover {
            background-color: #148f77;
        }
        #error-message {
            color: red;
            font-size: 14px;
            margin-bottom: 10px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="login-wrapper">
            <div class="header">注册</div>
            <div class="form-wrapper">
                <form method="post" onsubmit="return checkForm()">
                    <input type="text" class="input-item" name="username" placeholder="请输入用户名" onfocus="clearError()" />
                    <input type="password" class="input-item" name="password" placeholder="请输入密码" onfocus="clearError()" />
                    <input type="password" class="input-item" name="confirm-password" placeholder="请确认密码" onfocus="clearError()" />
                    <input type="email" class="input-item" name="email" placeholder="请输入邮箱" onfocus="clearError()" />
                    <input type="tel" class="input-item" name="phone" placeholder="请输入手机号码" onfocus="clearError()" />
                    <div id="error-message"></div>
                    <input type="submit" value="注册" />
                </form>
            </div>
        </div>
    </div>
    <script src="register.js"></script>
</body>
</html>
用户注册页面 - 快速创建新帐户

原文地址: https://www.cveoy.top/t/topic/gLtU 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录