案例:
效果图
代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<style>
.pop_main {
display: none;
}
.pop_con {
width: 500px;
height: 300px;
background: #fff;
border-radius: 4px;
position: fixed;
left: 50%;
top: 50%;
margin-left: -250px;
margin