效果图:
css:
<style>
* {
margin: 0;
padding: 0;
}
body {
/* background: #ccc; */
font-size: 16px;
}
#box2 {
width: 100%;
height: 100%;
background: rgba(0, 0, 0, .4);
position: absolute;
top: 0;
left: 0;
display: none;
z-index: 3;
}
#box {
width: 400px;
height: 350px;
border: 1px solid #ccc;
margin: 20px auto;
position: relative;
}
#btn {
width: 100px;
height: 35px;
background: #000;
color: #fff;
border: none;
position: absolute;