登录界面html源代码免费

登录界面html源代码免费

<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF8">
    <meta name="viewport" content="width=devicewidth, initialscale=1.0">
    <title>登录界面</title>
    <style>
        body {
            fontfamily: Arial, sansserif;
            backgroundcolor: #f0f0f0;
        }
        .container {
            width: 300px;
            padding: 16px;
            backgroundcolor: white;
            margin: 100px auto;
            border: 1px solid #ccc;
            borderradius: 4px;
        }
        h2 {
            textalign: center;
            marginbottom: 24px;
        }
        input[type=text], input[type=password] {
            width: 100%;
            padding: 12px 20px;
            margin: 8px 0;
            display: inlineblock;
            border: 1px solid #ccc;
            boxsizing: borderbox;
        }
        button {
            backgroundcolor: #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">
        <h2>登录</h2>
        <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.kdun.com/ask/648191.html

(0)
未希新媒体运营
上一篇 2024-05-23 08:33
下一篇 2024-05-23 08:38

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

云产品限时秒杀。精选云产品高防服务器,20M大带宽限量抢购  >>点击进入