jquery+css实现登录注册表单切换效果代码

代码语言:html

所属分类:表单美化

代码描述:jquery+css实现登录注册表单切换效果代码

代码标签: jquery css 登录 注册 表单 切换

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

<!DOCTYPE html>
<html>

<head>
     <meta charset="UTF-8">
  <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery-3.2.1.min.js"></script>
    <meta name="viewport" content="width=device-width, initial-scale=1">

<style>
  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*/html,body {
	font-family:Verdana;
	font-size:100%;
	'Raleway',sans-serif;
	background:url(//repo.bfw.wiki/bfwrepo/image/62254197e677b.png) no-repeat 0px 0px;
	background-size:cover;
	-webkit-background-size:cover;
	-moz-background-size:cover;
	-o-background-size:cover;
	-ms-background-size:cover;
	background-attachment:fixed;
}
h1,h2,h3,h4,h5,h6,a,p,input {
	'Raleway',sans-serif;
	margin:0;
}
ul,label {
	margin:0;
	padding:0;
}
body a:hover,body a {
	text-decoration:none;
}
/*-- main --*/.agileits_copyright p {
	font-size:14px;
	color:#fff;
	margin:0;
	line-height:1.8em;
	text-align:center;
	padding:0 1em;
}
.agileits_copyright p a {
	color:#FAC718;
	text-decoration:none;
}
.agileits_copyright p a:hover {
	color:#fff;
}
input[type="submit"],.agileits_copyright p a,.form-module .cta a {
	transition:.5s ease-in;
	-webkit-transition:.5s ease-in;
	-moz-transition:.5s ease-in;
	-o-transition:.5s ease-in;
	-ms-transition:.5s ease-in;
}
.main {
	padding:4em 0;
}
.main h1 {
	text-align:center;
	color:#fff;
	font-size:2.5em;
	margin-bottom:1.5em;
}
/* Form Module */.form-module {
	position:relative;
	background:#ffffff;
	max-width:400px;
	width:100%;
	border-top:5px solid #FAC718;
	box-shadow:0 0 3px rgba(0,0,0,0.25);
	margin:0 auto;
}
.w3_login_module {
	min-height:475px;
}
.form-module .toggle {
	cursor:pointer;
	position:absolute;
	top:-0;
	right:-0;
	background:#FAC718;
	width:30px;
	height:30px;
	margin:-5px 0 0;
	color:#ffffff;
	font-size:12px;
	line-height:30px;
	text-align:center;
}
.form-module .toggle .tooltip {
	position:absolute;
	top:5px;
	right:-75px;
	display:block;
	background:rgba(0,0,0,0.6);
	width:auto;
	padding:5px;
	font-size:12px;
	line-height:1;
	text-transform:uppercase;
	opacity:1;
	'Ubuntu',sans-serif !important;
}
.form-module .toggle .tooltip:before {
	content:'';
	position:absolute;
	top:5px;
	left:-5px;
	display:block;
	border-top:5px solid transparent;
	border-bottom:5px solid transparent;
	border-right:5px solid rgba(0,0,0,0.6);
}
.form-module .form {
	display:none;
	padding:40px;
}
.form-module .form:nth-child(2) {
	display:block;
}
.form-module h2 {
	margin:0 0 1.5em;
	color:#212121;
	font-size:1.2em;
	font-weight:400;
	line-height:1;
}
.form-module input[type="text"],.form-module input[type="password"],.form-module input[type="email"] {
	outline:none;
	display:block;
	width:100%;
	border:1px solid #d9d9d9;
	margin:0 0 20px;
	padding:10px 15px;
	box-sizing:border-box;
	font-weight:400;
	-webkit-transition:0.3s ease;
	transition:0.3s ease;
	font-size:14px;
}
.form-module input[type="text"]:focus,.form-module input[type="password"]:focus,.form-module input[type="email"]:focus {
	border:1px solid #94DCEB;
	color:#333333;
}
..........完整代码请登录后点击上方下载按钮下载查看

网友评论0