<!DOCTYPE html>
<html>
<head>
    <title>Login Page</title>
    <style>
        body {
            background-color: #f2f2f2;
            font-family: Arial, sans-serif;
        }
<pre><code>    .container {
        width: 300px;
        margin: 0 auto;
        margin-top: 100px;
        background-color: #fff;
        padding: 20px;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }
    
    h2 {
        text-align: center;
        margin-bottom: 20px;
    }
    
    input[type=&quot;text&quot;],
    input[type=&quot;password&quot;] {
        width: 100%;
        padding: 10px;
        margin-bottom: 10px;
        border: 1px solid #ccc;
        border-radius: 3px;
    }
    
    input[type=&quot;submit&quot;] {
        background-color: #4CAF50;
        color: #fff;
        padding: 10px 20px;
        border: none;
        border-radius: 3px;
        cursor: pointer;
    }
    
    input[type=&quot;submit&quot;]:hover {
        background-color: #45a049;
    }
&lt;/style&gt;
</code></pre>
</head>
<body>
    <div class="container">
        <h2>Login</h2>
        <form action="login.php" method="post">
            <input type="text" name="username" placeholder="Username" required>
            <input type="password" name="password" placeholder="Password" required>
            <input type="submit" value="Login">
        </form>
    </div>
</body>
</html>
写HTML的登陆页面

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

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