<!DOCTYPE html>
<html>
<head>
    <title>登录页面</title>
    <style>
        body {
            background-color: #f2f2f2;
            font-family: Arial, sans-serif;
        }
<pre><code>    .container {
        width: 300px;
        margin: 0 auto;
        margin-top: 150px;
        background-color: #fff;
        padding: 20px;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    
    h2 {
        text-align: center;
        margin-bottom: 20px;
    }
    
    label {
        display: block;
        font-weight: bold;
        margin-bottom: 10px;
    }
    
    input[type=&quot;text&quot;],
    input[type=&quot;password&quot;] {
        width: 100%;
        padding: 10px;
        border-radius: 5px;
        border: 1px solid #ccc;
        margin-bottom: 20px;
    }
    
    input[type=&quot;submit&quot;] {
        width: 100%;
        padding: 10px;
        background-color: #4CAF50;
        border: none;
        color: #fff;
        font-weight: bold;
        cursor: pointer;
        border-radius: 5px;
    }
    
    input[type=&quot;submit&quot;]:hover {
        background-color: #45a049;
    }
&lt;/style&gt;
</code></pre>
</head>
<body>
    <div class="container">
        <h2>登录</h2>
        <form>
            <label for="username">用户名</label>
            <input type="text" id="username" name="username" placeholder="请输入用户名">
<pre><code>        &lt;label for=&quot;password&quot;&gt;密码&lt;/label&gt;
        &lt;input type=&quot;password&quot; id=&quot;password&quot; name=&quot;password&quot; placeholder=&quot;请输入密码&quot;&gt;

        &lt;input type=&quot;submit&quot; value=&quot;登录&quot;&gt;
    &lt;/form&gt;
&lt;/div&gt;
</code></pre>
</body>
</html>
写HTML的登陆见面

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

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