• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

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

武飞扬头像
小李不吃绿皮青椒
帮助1

静态登录页面

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

学新通

<!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));
}
学新通

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

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhhjefkh
系列文章
更多 icon
同类精品
更多 icon
继续加载