登陆界面

//.html
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>登录界面</title>

    <link  rel="stylesheet" href="css/login.css"/>

</head>
<body>
<!--头部-->
<div id="header">
    <div class="h_center">
        <img src="images/117905_original_4862x3620.jpg" width="88" height="83" alt=""/>
        <p>为保证您使用,需登录,谢谢合作</p>
    </div>


</div>
<!--中部-->
<div id="login_body">
    <div class="login_b_center">
        <div class="login_bg">
            <h4>密码登录</h4>

            <form action="#" id="login">
                <!-- 用户名-->
                <div class="username"><span></span><input type="text"/></div>
                <!-- 密码-->
                <div class="password"><span></span><input type="password"/></div>
                <!-- 登录按钮-->
                <div class="login_btn"><input type="submit" value="登录"/></div>
            </form>
            <!-- 忘记密码-->
            <div class="forgetpassword">
                <a href="">忘记密码</a>
                <a href="">忘记会员名</a>
                <a href="">免费注册</a>
            </div>
        </div>
    </div>
</div>
<!--尾部-->
<div id="footer">
    <div class="link">
        <a href="">关于我们</a>|
        <a href="">联系我们</a>|
        <a href="">商家入驻</a>|
        <a href="">广告位</a>|
        <a href="">友情链接</a>|
        <a href="">销售联盟</a>|
        <a href="">人才招聘</a>|
        <a href="">手机服务</a>|
        <a href="">空白</a>
    </div>
    <div class="copyrigth">
        版权所有 哈尔滨理工大学荣成校区 &nbsp;地址:山东省荣成市学院路2006号 邮编:264300
    </div>
</div>
</body>
</html>

* {
    /*清空边框*/
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}
#header{
    height: 88px;/*设置头部高度*/
    border: 1px solid #ccc;

}
#header .h_center{
    width: 1200px;
    height: 88px;
    margin: 0 auto;/*居中显示*/

}
#header .h_center img{
    float: left;
    margin-top: 5px;
}
#header .h_center p{
    float: left;
    text-align: center;
    width: 880px;
    font-size: 10px;
    border: 1px solid #ffb4a8;
    margin-top: 20px;
    margin-left: 80px;
    padding: 3px;
    color: #6c6c6c;
    background: #fef2f2;

}

#login_body{
    height: 600px;
    background-image: url(../images/login_bg.png);
    background-position: center center;
}
#login_body .login_b_center{
    width: 1200px;
    height: 600px;
    margin: 0 auto;
    position: relative;
}
#login_body .login_bg{
    width: 350px;
    height: 351px;
    background: rgba(255, 255, 255, 0.8);
    position: absolute;
    right: 10px;
    top: 120px;
    padding: 30px;

}
#login div{
    height: 40px;
    margin-top: 20px;


}
#login span{
    width: 40px;
    height: 40px;
    display: inline-block;
    border: 1px solid #ccc;
    border-right: none;
    float: left;
}
#login .username span{
    background-image: url(../images/userName_Icon.png);
    background-position: center center;
}
#login .password span{
    background-image: url(../images/password_Icon.png);
    background-position: center center;

}
#login input{
    width: 250px;
    height: 40px;
    float: left;
}
#login .login_btn input{
    background-color: #f40;
    border:none;
    width: 300px;
    color: white;
    font-size: 20px;
}
.login_bg .forgetpassword{
    height: 40px;
    margin-top: 40px;
    text-align:right;
}
a{
    text-decoration: none;
}
#footer{
    text-align: center;
    height: 300px;
    padding-top: 30px;
}
#footer .copyrigth{
    margin-top: 20px;
    font-size: 12px;
}
#footer .link a{
    margin-left: 5px;
    margin-right: 5px;
    color: #666;
}
//.css
* {
    /*清空边框*/
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}
#header{
    height: 88px;/*设置头部高度*/
    border: 1px solid #ccc;

}
#header .h_center{
    width: 1200px;
    height: 88px;
    margin: 0 auto;/*居中显示*/

}
#header .h_center img{
    float: left;
    margin-top: 5px;
}
#header .h_center p{
    float: left;
    text-align: center;
    width: 880px;
    font-size: 10px;
    border: 1px solid #ffb4a8;
    margin-top: 20px;
    margin-left: 80px;
    padding: 3px;
    color: #6c6c6c;
    background: #fef2f2;

}

#login_body{
    height: 600px;
    background-image: url(../images/login_bg.png);
    background-position: center center;
}
#login_body .login_b_center{
    width: 1200px;
    height: 600px;
    margin: 0 auto;
    position: relative;
}
#login_body .login_bg{
    width: 350px;
    height: 351px;
    background: rgba(255, 255, 255, 0.8);
    position: absolute;
    right: 10px;
    top: 120px;
    padding: 30px;

}
#login div{
    height: 40px;
    margin-top: 20px;


}
#login span{
    width: 40px;
    height: 40px;
    display: inline-block;
    border: 1px solid #ccc;
    border-right: none;
    float: left;
}
#login .username span{
    background-image: url(../images/userName_Icon.png);
    background-position: center center;
}
#login .password span{
    background-image: url(../images/password_Icon.png);
    background-position: center center;

}
#login input{
    width: 250px;
    height: 40px;
    float: left;
}
#login .login_btn input{
    background-color: #f40;
    border:none;
    width: 300px;
    color: white;
    font-size: 20px;
}
.login_bg .forgetpassword{
    height: 40px;
    margin-top: 40px;
    text-align:right;
}
a{
    text-decoration: none;
}
#footer{
    text-align: center;
    height: 300px;
    padding-top: 30px;
}
#footer .copyrigth{
    margin-top: 20px;
    font-size: 12px;
}
#footer .link a{
    margin-left: 5px;
    margin-right: 5px;
    color: #666;
}

自己根据网课教程,做了一个简单的一个小的登陆界面

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值