Html
    Css
    Js

    
                        
.container {
	width:900px;
	margin:50px auto;
	text-align:center;
}
#myModel {
	position:absolute;
	top:0;
	left:0;
	background-color:rgba(9,9,9,0.63);
	width:100%;
	height:100%;
	z-index:1000;
}
.model-content {
	width:50%;
	text-align:center;
	background:#ffffff;
	border-radius:6px;
	margin:100px auto;
	line-height:30px;
	z-index:10001;
}

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

简单的蒙版实例

0