登录页面
Posted 本站大佬
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了登录页面相关的知识,希望对你有一定的参考价值。
<!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>Document</title>
<link rel="stylesheet" href="a.css">
</head>
<body>
<div class="signup-form">
<form action="">
<h1>Sign Up</h1>
<input type="text" placeholder="全名" class="txtb" name="username" autofocus="" autocapitalize="none" autocomplete="username" maxlength="150" required="" id="id_username">
<input type="email" placeholder="邮箱" class="txtb">
<input type="password" placeholder="密码" class="txtb" name="password" autocomplete="current-password" required="" id="id_password">
<input type="submit" placeholder="Create Account" class="signup-btn" value="Create Account">
<a href="">已经有账户了</a>
</form>
</div>
</body>
</html>
<style>
body{
margin: 0;
padding: 0;
background: #4D8796;
}
.signup-form{
width: 300px;
padding: 20px;
text-align: center;
background: url();
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
overflow: hidden;
}
.signup-form h1{
margin-top: 100px;
/*font-family: ;*/
color: #fff;
font-size: 40px;
}
.signup-form input{
display:block;
width: 100%;
padding: 0 auto;
height: 44px;
text-align: center;
box-sizing: border-box;
outline: none;
border: none;
}
.txtb{
margin: 20px 0;
background: rgba(255,255,255,5);
border-radius: 6px;
}
.signup-btn{
margin-top: 60px;
margin-bottom: 20px;
background: #4D8796;
color: #fff;
font-size: 14px;
cursor: pointer;
transition: 0.8s;
}
.signup-btn:hover{
transform: scale(0.96);
}
.signup-form a{
text-decoration: none;
color: #fff;
font-size: 14px;
padding: 10px;
transition: 0.8s;
display: block;
}
.signup-form a:hover{
background: rgba(0,0,0,0.3);
}
</style>
以上是关于登录页面的主要内容,如果未能解决你的问题,请参考以下文章