<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.btn {
padding: 2px 4px;
border: none;
color: white;
cursor: pointer;
background: pink;
}
.wrap {
width: 200px;
height: 300px;
padding: 20px;
display: none;
position: fixed;
left: 40%;
top: 20%;
background: white;
border-radius: 10px;
}
.mask {
width: 100%;
/* height: 100%; */
height: 100vh;
position: fixed;
left: 0%;
top: 0%;
opacity: 0.3;
display: none;
background: black;
}
</style>
</head>
<body>
<div>
<div>
JS:模态窗
最新推荐文章于 2022-09-08 18:46:55 发布