HTML中的登录页面 登录页面带头像标志的方法

这篇博客介绍了如何在HTML中制作一个包含头像展示的登录页面,详细讲解了实现这一功能的方法。
摘要由CSDN通过智能技术生成

登录页面带头像标志的方法

index.css:

body
{
    margin: 0;
    padding: 0;
    background: url(./image/gufeng2.jpg);
    font-family: sans-serif;

}

.loginBox
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 450px;
    min-height: 200px;
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    box-sizing: border-box;
}

.user
{
    margin: 0 auto;
    display: block;
    margin-bottom: 20px;
}

h1
{
    margin: 0;
    padding: 0 0 20px;
    color: #262626;
    text-align: center;
}

.loginBox input
{
    width: 100%;
    margin-bottom: 20px;
}

.loginBox input[type="text"]
.loginBox input[type="password"]
{
    border: none;
    border-bottom: 2px solid #262626;
    outline: none;
    height: 40px;
    color: #262626;
    background: transparent;
    font-size: 16px;
    padding-left: 20px;
    box-sizing: border-box;
}

.loginBox input[type="text"]:focus,
.loginBox input[type=&
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值