aiaiask.com©

开花即结果 提问即答案

写一个表单登录的网页代码
原始问题:

写一个表单登录的网页代码

<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录表单</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f0f0f0;
        }
        .container {
            width: 300px;
            padding: 16px;
            background-color: white;
            border: 1px solid #ccc;
            margin: 50px auto;
            box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
        }
        input[type=text], input[type=password] {
            width: 100%;
            padding: 12px 20px;
            margin: 8px 0;
            display: inline-block;
            border: 1px solid #ccc;
            box-sizing: border-box;
        }
        button {
            background-color: #4CAF50;
            color: white;
            padding: 14px 20px;
            margin: 8px 0;
            border: none;
            cursor: pointer;
            width: 100%;
        }
        button:hover {
            opacity: 0.8;
        }
    </style>
</head>
<body>
    <div class="container">
        <label for="uname"><b>用户名</b></label>
        <input type="text" placeholder="输入用户名" name="uname" required>

        <label for="psw"><b>密码</b></label>
        <input type="password" placeholder="输入密码" name="psw" required>

        <button type="submit">登录</button>
    </div>
</body>
</html>
写一个表单登录的网页代码
https://www.aiaiask.com/ask/91216.html
AI / 模型Siliconflow
时间 / DATEOctober 12, 2024, 8:19 AM
语言zh-CN
IP / 区域云南 昆明