自制登陆表单

 HTML5代码

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<link rel="stylesheet" href="css/login.css" />
		<link rel="stylesheet" href="css/font-awesome.css"/>
		<link rel="stylesheet" href="css/note.css">
	</head>
	<body>
		<div id="login-box">
			<h1>Login</h1>
			<div class="form">
				<div class="item">
					<i class="fa fa-user-circle-o" aria-hidden="true"></i>
					<input type="text" placeholder="Username" />
				</div>
				<div class="item">
					<i class="fa fa-key" aria-hidden="true"></i>
					<input type="text" placeholder="Passworld" />
				</div>
			</div>
			 <button type="button">LOGIN</button>
			 <p>Don't have a account? &nbsp;<a href="#">Sign Up</a></p>
		</div>
		<div id="note">
			<a>Auther<i>联系方式&nbsp;QQ&nbsp;xxxxx<br />By xxxx</i></a>
		</div>
	</body>
</html>

 CSS代码

login.css

body{
	background: url(../img/bg3.jpg);
	margin: 0;
	background-repeat: no-repeat;
	background-size: 100% auto;
}
#login-box{
	width: 30%;
	height: auto;
	margin: 0 auto;
	margin-top: 10%;
	text-align: center;
	background: #00000080;
	padding: 20px 50px;
}
#login-box h1{
	color: #FFFFFF;
}
#login-box .form{
	margin-top: 50px;
}
#login-box .form .item{
	margin: 20px;
}
#login-box .form .item i{
	font-size: 19px;
	color: #FFFFFF90;
}
#login-box .form .item input{
	width: 160px;
	font-size: 16px;
	border: 0;
	border-bottom: 2px solid #FFF;
	padding: 5px 10px;
	background: none;
	color: #fff;
}
#login-box button{
	margin-top: 3px;
	width: 180px;
	height: 30px;
	font-size: 15px;
	font-weight: 100;
	color: #FFFFFF;
	background-image: linear-gradient(to right, #a8caba 0%, #5d4157 100%);
	border: 0;
	border-radius: 15px;
}
#login-box p{
	margin-top: 50px;
}
#login-box p{
	color: #FFFFFF80;
}
#note{
	padding-left: 33%;

}

note.css

a {
	position: relative;
	cursor: pointer;
	font: normal normal 85% sans-serif;
	color: white;
	text-shadow: #090A0B 0 -1px;
	display: inline-block;
}

#note a > i {
	text-align: center;
	font: italic normal 90% Georgia, serif;
	line-height: 150%;
	color: black;
	text-shadow: white 0 1px;
	background: #DDD;
	background-clip: padding-box;
	box-shadow: 0 0px 2px rgba(0, 0, 0, 0.5);
	border: 5px solid #111;
	border: 5px solid rgba(0, 0, 0, 0.5);
	border-radius: 3px;
	position: absolute;
	width: 250px;
	left: 50%;
	margin-left: -125px;
	padding: 10px 0;
	bottom: 100%;
	margin-bottom: 15px;
	visibility:hidden;
	opacity:0;
	-webkit-transition: opacity 0.5s linear;
	-moz-transition: opacity 0.5s linear;
	-ms-transition: opacity 0.5s linear;
	-o-transition: opacity 0.5s linear;
	transition: opacity 0.5s linear;
}

#note a > i:before, a > i:after {
	content: "";
	position: absolute;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	top: 100%;
	left: 50%;
	margin-left: -10px;
}

#note a > i:before {
	border-top: 10px solid #111;
	border-top: 10px solid rgba(0, 0, 0, 0.5);
	margin-top: 5px;
}

#note a > i:after{
	border-top: 10px solid #DDD;
	margin-top: -2px;
	z-index: 1;
}

#note a:hover > i {
	visibility: visible;
	opacity: 1;
}

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

soar+

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值