HTML+CSS的一个静态登录页面的实现

静态登录页面

只有页面,后端部分等一段时间学了再加哎,冲冲冲

<!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>Login In</title>
    <link rel="stylesheet" href="../iconfont/图标/iconfont.css">
    <link rel="stylesheet" href="login.css">
</head>
<body>
    

<!--登录界面开始-->
<div class="box">
    <div class="input-big-box">
        <h1>login</h1>
        <div class="input-box">
            <i class="iconfont">&#xe65d;</i>

            <input type="text" placeholder="UserName">
        </div>
        <div class="input-box">
            <i class="iconfont">&#xe658;</i>

            <input type="text" placeholder="password">
        </div>
        <button>Sign In</button>
    </div>
</div>
<!--登录界面结束-->


</body>
</html>

css:

*{
    margin: 0px;
    padding: 0px;
}

body{
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url("../img/忍者.jpg");
}

.input-big-box{
    text-align: center;
    position: relative;
    top: 250px;
    left: 600px;
    width: 400px;
    height: 250px;
    border-radius: 43px;
    border: 5px solid sienna;
    background-color: #00000068;
}

.input-big-box h1{
    color: #ffffff;
    padding-top: 25px;
}

.iconfont{
    color: #ffffff;
    size: 15px;
}

.input-box input{
    border: none;
    background: none;
    outline: none;
    border-bottom: 2px solid #ffffff;
    padding: 15px;
    color: #ffffff;
}

.input-big-box button{
    width: 90px;
    height: 30px;
    border-radius: 13px;
    border: none;
    position: relative;
    top: 24px;
    background-image: linear-gradient(to bottom right, red, yellow);
}

.input-big-box button:hover{
    background-image: linear-gradient(to bottom right, rgb(0, 255, 55), rgb(255, 0, 128));
}

自己第一次动手还是感觉难欸,害

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值