Html
    Css
    Js

    
                        
* {
	padding:0;
	margin:0;
}
html,body {
	width:100%;
	height:100%;
}
.login-hh {
	height:30px;
	line-height:30px;
	text-align:center;
}
.login-hh a {
	text-decoration:none;
	color:#000000;
	display:block;
	width:100px;
	background-color:#EEECEF;
	margin:0 auto;
}
.login {
	width:350px;
	height:200px;
	background-color:#FFFFFF;
	border:1px solid #DAD8DA;
	border-radius:4px;
	box-shadow:1px 4px 3px rgba(0,0,0,0.2);
	text-align:center;
	position:absolute;
	top:50%;
	left:50%;
	margin-left:-175px;
	margin-top:-100px;
	display:none;
	z-index:9999;
}
.login .login-header {
	height:30px;
	cursor:move;
}
.login .form-control {
	border:1px solid #BFBFBF;
	width:80%;
	height:30px;
	margin:10px 15px;
	padding:0 10px;
	outline:none;
}
.login .f-close {
	cursor:pointer;
	position:absolute;
	top:3px;
	right:8px;
	font-family:sans-serif;
}
.login .form-button {
	height:30px;
	width:42%;
	background-color:#FFFFFF;
	border:0;
	border-radius:4px;
	color:#FFFFFF;
	background-color:#348cff;
	outline:none;
	margin:10px 0;
}
/* 遮罩 */
.mask {
	width:100%;
	height:100%;
	background-color:#000;
	opacity:0.3;
	position:fixed;
	top:0;
	left:0;
	display:none;
	z-index:1;
}

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

jq可拖动登录框代码

更新时间:2022-12-24 19:15:32

0