HTML登录界面设计

登录 html与css

<!-- html代码 -->
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>登录界面</title>
	<link href="style/div.css" rel="stylesheet" type="text/css">
</head>
<body>
	<div id="login">
		<form name="loginform" method="post" action="#">
			<div class="loginFunc">
				<span class="loginFuncApp">二维码登录</span>
				<span class="loginFuncNormal">邮箱账号登录</span>
			</div>
			<input type="text" placeholder="邮箱账号或手机号" class="identity">
			<input type="password" placeholder="密码" class="password">
			<p class="info">
				<input type="checkbox" class="checkbox">
				<span>十天内免登录</span>
				<span class="help">
					<a href="#">忘记密码?</a>
				</span>
			</p>
			<input type="submit" value="登 录" class="submit">
			<input type="button" value="注 册" class="button">
		</form>
	</div>
</body>
</html>

<!-- css代码 -->
@charset "utf-8";
/* CSS Document */
*{
	padding: 0px;
	margin: 0px;
	border: 0px;
}
body{
	font-family: "微软雅黑";
}
input:focus{
	outline: none;
}
#login{
	width: 450px;
	height: 380px;
	border: 1px solid #999;
	box-shadow: 10px;
	margin: 40px auto;
}
#login .loginFunc{
	height: 48px;
	width: 100%;
	margin-bottom: 45px;
}
.loginFuncApp,.loginFuncNormal{
	display: inline-block;
	width: 100px;
	text-align: center;
	line-height: 48px;
	color: #666;
	margin: 10px 60px;
}
.loginFuncNormal{
	color: #0a8745;
	border-bottom: 2px solid #0a8745;
}
.identity,.password{
	width: 328px;
	height: 45px;
	margin: 10px 60px 10px 38px;
	border: 1px solid #ccc;
	padding-left: 45px;
}
.identity{
	background: url("../images/timg1.png") no-repeat 10px center;
}
.password{
	background: url("../images/timg2.png") no-repeat 10px center;
}
.identity:focus,.password:focus{
	border: 1px solid #0A8745;
}
::-webkit-input-placeholder{
	color: #ccc;
}
.info{
	height: 20px;
	padding: 0 0 10px 40px;
}
.checkbox{
	width: 16px;
	height: 16px;
	vertical-align: bottom;
}
.info span{
	font-size: 14px;
	color: #666;
	vertical-align: bottom;
	margin-left: 10px;
}
.info span.help{
	margin-left: 190px;
}
.info span a{
	color: #0A8745;
	text-decoration: none;
}
.submit,.button{
	width: 172px;
	height: 50px;
	border-radius: 4px;
	text-align: center;
	font-size: 18px;
	cursor: pointer;
}
.submit{
	background: #0A8745;
	color: #fff;
	margin: 20px 20px 0px 40px;
}
.button{
	border: 1px solid #a7d4bd;
	color: #0A8745;
	background: #e6f3ec;
}
.submit:hover{
	background: #077e3f;
}
.button:hover{
	background: #cee7da;
}

代码中的图片请联系邮箱

青柠文化传播(内蒙古)有限公司 宣发
联系:qnmusic@163.com
您的邮件会在1-2个工作日内回复或与您取得联系!

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值