Html
    Css
    Js

    
                        
html,body {
	width:100%;
	height:100%;
	position:relative;
}
* {
	padding:0;
	margin:0;
	list-style:none;
}
li img {
	width:200px;
	height:160px;
	margin-left:10px;
}
.wrap li {
	width:200px;
	height:158px;
	margin-left:10px;
	margin-top:10px;
	float:left;
}
.wrap {
	width:630px;
	height:340px;
	padding-top:50px;
	padding-left:50px;
}
.mask {
	width:100%;
	height:100%;
	background:rgba(0,0,0,0.6);
	position:fixed;
	top:0;
}
.mask img {
	width:600px;
	height:480px;
	position:absolute;
	top:0;
	left:0;
	right:0;
	bottom:0;
	margin:auto;
}
.btnl {
	font-size:100px;
	width:40px;
	height:70px;
	left:10px;
	top:0;
	bottom:0;
	margin:auto;
	position:absolute;
}
.btnr {
	font-size:100px;
	width:40px;
	height:70px;
	right:10px;
	top:0;
	bottom:0;
	margin:auto;
	position:absolute;
}
.close {
	width:30px;
	height:30px;
	position:absolute;
	top:10px;
	right:20px;
	font-size:50px;
}

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

jQuery仿QQ相册图片查看

0