Html
    Css
    Js

    
                        
#meng {
	width:100%;
	height:100%;
	z-index:1111;
	position:fixed;
	left:0;
	top:0;
	background-color:rgba(0,0,0,0.5);
	display:none;
}
.img-box {
	border:1px solid #9A948E;
	width:400px;
	height:300px;
	background:#fff;
	position:fixed;
	left:50%;
	top:50%;
	margin-left:-200px;
	margin-top:-150px;
	overflow:hidden;
}
#img {
	width:400px;
	height:300px;
	min-height:100px;
	min-width:200px;
	position:absolute;
}
.close {
	position:fixed;
	top:5px;
	right:5px;
	display:block;
	height:40px;
	width:40px;
	line-height:40px;
	text-align:center;
	border:3px solid #fff;
	border-radius:50%;
	cursor:pointer;
	color:#fff;
	font-weight:bold;
}
.imgs {
	height:50px;
	width:50px;
	float:left;
}

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

jQuery查看大图

0