登录页面模板

复制即用的登录html模板(字体图表需自行下载并配置)

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./font/iconfont.css">

</head>
<body>
    <!-- 样式 -->
    <style>
        #login{
            width: 600px;
            height: 500px;
            margin: 200px auto;
            background-color: white;
            box-shadow: 3px 3px 3px 3px grey;
            text-align: center;
            border-radius: 20px;
        }
        #login .title{
            height: 100px;
            padding-top: 10px;
        }
        .login_form .input_user,.login_form .input_psd{
            width: 320px;
            height: 50px;
            box-shadow: 3px 3px 3px 3px grey;
            border: none;
            font-size: 20px;
            border-radius: 5px;
            margin: auto 10px;
        }
        .form_make{
            height: 100px;
            width: 100%;
            display: flex;
            margin-top: 50px;
        }
        .form_make .submit_button{
            height: 50px;
            width: 400px;
            background-color: green;
            border: none;
            box-shadow: 3px 3px 3px 3px grey;
            border-radius: 5px;
            color: white;
            font-size: 20px;
            font-weight: bolder;
            margin: auto;
        }
        .form_user .icon-yonghuming{
            font-size: 30px;
            color: gold;
            margin-right: 10px;
        }
        .form_psd .icon-mima{
            font-size: 30px;
            color: gray;
            margin-right: 10px;
        }
        .form_user,.form_psd{
            display: flex;
            margin: auto;
            margin-top: 10px;
            width: 80%;
            justify-content: center;
            height: 100px;
            line-height: 100px;
        }
        .submit_button:hover{
            background-color: rgb(54, 150, 54);
            cursor:pointer;
            box-shadow: 3px 3px 3px 3px lightgray;
        }


    </style>


    <div id="login">
        <div class="title">
            <h1>Login</h1>
        </div>
        <form action="/login" method="post" class="login_form">
            <div class="form_user">
                <div class="iconfont icon-yonghuming"></div></input><input type="text" name="username" class="input_user">
            </div>
            <div class="form_psd">
                <div class="iconfont icon-mima"></div><input type="password" name="password" class="input_psd">
            </div>
            <div class="form_make">
                <input type="submit" class="submit_button" value="登录">
            </div>
        </form>
    </div>
</body>

</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值