div+css实现描边简洁登录页面代码

代码语言:html

所属分类:表单美化

代码描述:div+css实现描边简洁登录页面代码

代码标签: div css 描边 简洁 登录 页面 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<html>

<head>

    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <style>
/*-- reset --*/html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,dl,dt,dd,ol,nav ul,nav li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video {
	margin:0;
	padding:0;
	border:0;
	font-size:100%;
	font:inherit;
	vertical-align:baseline;
}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
	display:block;
}
ol,ul {
	list-style:none;
	margin:0px;
	padding:0px;
}
blockquote,q {
	quotes:none;
}
blockquote:before,blockquote:after,q:before,q:after {
	content:'';
	content:none;
}
table {
	border-collapse:collapse;
	border-spacing:0;
}
/*-- start editing from here --*/a {
	text-decoration:none;
}
.txt-rt {
	text-align:right;
}
/* text align right */.txt-lt {
	text-align:left;
}
/* text align left */.txt-center {
	text-align:center;
}
/* text align center */.float-rt {
	float:right;
}
/* float right */.float-lt {
	float:left;
}
/* float left */.clear {
	clear:both;
}
/* clear float */.pos-relative {
	position:relative;
}
/* Position Relative */.pos-absolute {
	position:absolute;
}
/* Position Absolute */.vertical-base {
	vertical-align:baseline;
}
/* vertical align baseline */.vertical-top {
	vertical-align:top;
}
/* vertical align top */nav.vertical ul li {
	display:block;
}
/* vertical menu */nav.horizontal ul li {
	display:inline-block;
}
/* horizontal menu */img {
	max-width:100%;
}
/*-- end reset --*//*--main-content-starts-here--*/body {
	font-family:Verdana;
	'Oxygen',sans-serif;
	width:100%;
	text-transform:uppercase;
	background:#285ca7;
	background-size:cover;
}
.login-form {
	width:28%;
	margin:0 auto;
	background:url('//repo.bfw.wiki/bfwrepo/image/643e4a8a8a7bc.png')no-repeat 0px 0px;
	background-size:cover;
	padding:30px 33px 67px;
	border-top:6px solid #ffd900;
	-webkit-box-shadow:0px 35px 44px -22px rgba(0,0,0,0.72);
	-moz-box-shadow:0px 35px 44px -22px rgba(0,0,0,0.72);
	box-shadow:0px 35px 44px -22px rgba(0,0,0,0.72);
}
h1 {
	text-align:center;
	font-size:36px;
	font-weight:bold;
	margin-top:55px;
	margin-bottom:35px;
	color:#ffffff;
}
form {
	margin:0 auto;
}
.login-form h2 {
	text-align:center;
	margin-top:26px;
	margin-bottom:24px;
	font-size:26px;
	color:rgba(255,255,255,0.97);
}
form p {
	font-size:15px;
	margin-top:44px;
	padding:0.3px;
	color:#c7c8ca;
}
.login-form form input[type="text"],input[type="password"] {
	outline:none;
	font-size:1em;
	color:#ffffff;
	padding:15px 10px;
	margin:0 auto;
	width:95%;
	border:none;
	border-bottom:1px solid #DCCBCF;
	-webkit-appearance:none;
	display:block;
	background:transparent;
}
input[type="submit"] {
	width:100%;
	outline:none;
	display:block;
	margin:0 auto;
	margin-top:45px;
	padding:13px 20px;
	font-size:20px;
	font-weight:bold;
	text-transform:uppercase;
	background:#ffd900;
	border:none;
	color:#ffffff;
	cursor:pointer;
	transition:0.3s all;
	-webkit-transition:0.3s all;
	-moz-transition:0.3s all;
	-o-transition:0.3s all;
	-ms-transition:0.3s all;
}
input[type="submit"]:hover {
	background:#DEBF0D;
	transition:0.3s all;
	-webkit-transition:0.3s all;
	-moz-transition:0.3s all;
	-o-transition:0.3s all;
	-ms-transition:0.3s all;
}
.login-form a {
	display:block;
	font-size:15px;
	color:#ffffff;
	text-align:center;
	margin-top:31px;
	transition:0.3s all;
	-webkit-transition:0.3s all;
	-moz-transition:0.3s all;
	-o-transition:0.3s all;
	-ms-transition:0.3s all;
}
.login-form a:h.........完整代码请登录后点击上方下载按钮下载查看

网友评论0