效果:
代码如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
.mask{
width: 100%;
height: 100%;
background: rgba(0,0,0,0.3);
position: fixed;
left: 0;
top: 0;
display: none;
}
.model{
width: 300px;
height: 300px;
position: fixed;
left: 50%;
top: 50%;
margin-left: -150px;
margin-top: -150px;
background: white;
paddin