一个简约精美的登录页面(HTML+CSS)

2 篇文章 0 订阅

最近简单学完了HTML和CSS,想自己做个简单的登录网页试试,大佬勿喷哈哈。

页面效果

在这里插入图片描述

实现代码

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录页面</title>
    <link rel="stylesheet" href="css/style.css">
    <script src="https://kit.fontawesome.com/4a4ce6258d.js" crossorigin="anonymous"></script>
</head>
<body>
    <div id="bigBox">
        <h1>LOGIN</h1>
        <div class="inputBox">
            <div class="inputText">
                <i class="fas fa-user"></i>
                <input type="text" placeholder="username">
            </div>
            <div class="inputText">
                <i class="fas fa-lock"></i>
                <input type="password" placeholder="password">
            </div>
            <input type="button" value="LOGIN" class="inputButton">

        </div>
    </div>

</body>
</html>
body{
    margin: 0px;
    padding: 0px;
    background-image: url("../images/star.jpg");
    background-repeat: no-repeat;
}

#bigBox{
    margin: 0 auto;
    margin-top: 200px;
    padding: 20px 50px;
    width: 400px;
    height: 300px;
    border-radius: 10px;
    background-color: rgba(52, 52, 59, 0.64);
    text-align: center;
}

#bigBox h1{
    color: rgba(95, 108, 159, 0.84);
}

#bigBox .inputBox{
    margin-top: 40px;
}

#bigBox .inputBox .inputText{
    margin-top: 20px;
}

#bigBox .inputBox .inputText input{
    border: 0px;
    padding: 10px 10px;
    border-bottom: 1px solid white;
    background-color: rgba(52, 52, 59, 0.64);
    color: white;
}

#bigBox .inputBox .inputButton{
    width: 150px;
    height: 25px;
    margin-top: 30px;
    border-radius: 20px;
    font-size: 15px;
    background-color: #00DBDE;
    background-image: linear-gradient(90deg, #00DBDE 0%, #FC00FF 100%);
}

.fas{
    color: white;
    margin-right: 10px;
}
  • 19
    点赞
  • 154
    收藏
    觉得还不错? 一键收藏
  • 8
    评论
评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值