一个漂亮的登录页面源码
emlog吧
全部回复
仅看楼主
level 13
可以对照着改一下自己登录页
HTML部分是这样的
<body>
<div class="Container">
<div class="Login-wrapper">
<div class="Header">Login</div>
<div class="Form-wrapper">
<input type="text" name="username" placeholder="username" class="input-item">
<input type="password" name="password" placeholder="password" class="input-item">
<div class="Btn">Login</div>
</div>
<div class="Msg">
Don't have account? <a href="#">Sign up</a>
</div>
</div>
</div>
</body>
2021年03月08日 21点03分 1
level 13
css部分是这样的
*{
margin:0;
padding:0;
font-family:Serif;
letter-spacing:.05em;
}
html{
height:100%;
}
body{
height:100%;
}
.Container{
height:100%;
background-image: linear-gradient(to right,
#fbc2eb , #
a6c1ee);
}
.Login-wrapper{
background-color:#fff;
width:250px;
height:500px;
border-radius:15px;
padding:0 50px;
position:relative;
left:50%;
top:50%;
transform:translate(-50%,-50%);
}
.Login-wrapper .Header{
font-size:30px;
font-weight:bold;
text-align:center;
line-height:200px;
}
.Login-wrapper .Form-wrapper .input-item{
display:block;
width:100%;
margin-bottom:20px;
border:0;
padding:10px;
border-bottom:1px solid rgb(128,125,125);
font-size:15px;
outline:none;
}
.Login-wrapper .Form-wrapper .input-item::placeholder{
text-transform:uppercase;
}
.Login-wrapper .Form-wrapper .Btn{
text-align:center;
padding:10px;
width:100%;
margin-top:40px;
background-image: linear-gradient(to right, #a6c1ee,#fbc2eb);
color:#fff;
}
.Login-wrapper .Msg{
text-align:center;
line-height:80px;
}
.Login-wrapper .Msg a{
text-decoration-line:none;
color:#a6c1ee;
}
2021年03月08日 21点03分 2
level 13
效果是这样的:
2021年03月08日 21点03分 3
level 13
源文件上传到网盘了
链接: [无效] https://pan.baidu.com/s/1_kGL29hPaWhR1RTWQ6XN5w 提取码: jerj
2021年03月08日 21点03分 4
level 11
不错不错
2021年03月10日 14点03分 5
level 1
楼主还有别的嘛
2022年05月24日 02点05分 6
level 10
不错
2023年03月30日 05点03分 7
1