Html
    Css
    Js

    
                        
* {
	padding:0;
	margin:0;
}
#register {
	width:540px;
	height:407px;
	border:1px solid hotpink;
	margin:0 auto;
	margin-top:20px;
}
#register .row {
	height:50px;
	line-height:50px;
	border-bottom:1px dashed #ccc;
}
#register .row div {
	float:left;
	height:50px;
	line-height:50px;
}
#register .row .left {
	width:30%;
	text-align:right;
}
#register .row .right {
	width:70%;
}
#register .row .right input {
	width:200px;
	height:25px;
	border:1px solid #ccc;
	border-radius:4px;
	padding:0px 4px;
	margin-left:10px;
}
#register .row .right input[type=radio] {
	width:30px;
	height:15px;
	line-height:15px;
}
#register .row button {
	width:80px;
	height:30px;
	line-height:30px;
	margin:0 auto;
}
#bg {
	width:100%;
	height:800px;
	background:black;
	opacity:0.8;
	position:absolute;
	top:0px;
	z-index:10;
	display:none;
}
#msg-box {
	height:100px;
	line-height:100px;
	text-align:center;
	top:240px;
	position:absolute;
	z-index:100;
	display:none;
}
.loading {
	width:100px;
	margin-left:48%;
	background-image:url('loading.gif');
	background-repeat:no-repeat;
}
.success {
	width:400px;
	margin-left:34%;
	color:green;
	border:2px solid green;
}
.error {
	width:400px;
	margin-left:34%;
	color:red;
	border:2px solid red;
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

简单的注册页面带验证

注释比较详细,可直接使用

2
      insist0
      2017/11/13 0:11:11

      你好,  检测密码事件里面  a = 11; flag = a; 是什么意思。想请教下

      回复
      可乐0
      2017/6/10 18:26:45