<!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>沐白后台管理登录</title>
<style>
body{
background-image: linear-gradient(to left,#9c88ff,#3cadeb);
display: flex;
justify-content: center;
}
.hezi{
position:relative;
top: 100px;
width: 1100px;
height: 550px;
box-shadow: 0 5px 15px rgba(0,0,0,.8);
display: flex;
}
.left{
width: 800px;
height: 550px;
background-image: url("https://c.wallhere.com/photos/53/8e/4K_anime_girls_galgame-1943621.jpg!d");
/* 让图片适应大小 */
background-size: cover;
}
.right{
width: 300px;
height: 550px;
background-color: white;
display: flex;
justify-content: center;
align-items: center;
}
.login{
width: 250px;
height: 500px;
}
.f:hover:hover{
color:#ffcc00;
}
.login>h1{
font: 900 30px '';
text-align: center;
}
.e{
width: 230px;
margin: 25px 0;
outline: none;
/* 框框消失 */
border: 0;
padding: 10px;
border-bottom: 3px solid pink;
font: 900 16px '';
}
.f{
float: right;
margin: 10px 0;
text-decoration: none;
}
.g{
position: absolute;
margin: 20px;
bottom: 40px;
display: block;
width: 200px;
height: 60px;
font: 900 30px '';
text-decoration: none;
line-height: 50px;
border-radius: 30px;
background-image: linear-gradient(to left,#3cadeb,pink);
text-align: center;
}
</style>
</head>
<body>
<div class="hezi">
<div class="left"></div>
<div class="right">
<div class="login">
<h1>登录界面</h1>
<input type="text" class="e" placeholder="请输入账号" maxlength="10">
<input type="password" class="e" placeholder="请输入密码" maxlength="16">
<input type="password" class="e" placeholder="请输入安全密钥" maxlength="6">
<a href="#" class="f">账号注册</a>
<a href="#" class="g">登录</a>
</div>
</div>
</div>
</body>
</html>
好看的Html登陆界面
最新推荐文章于 2025-04-14 12:04:35 发布