<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
#d1{
width: 400px;
height: 300px;
z-index: 2;
position: fixed;
top: 50%;
left: 50%;
margin-left: -200px;
margin-top: -150px;
overflow: hidden;
display: none;
background-color: white;
}
#d2{
position: fixed;
left: 0;
top:0;
width: 100%;
height: 100%;
background-color: grey;
z-index: 1;
opacity: 0.8;
display: none;
}
#number{
display: block;
width: 90%;
height: 30px;
margin: 40px auto;
border: solid 1px #248CD6;
border-radius: 5px;
js自定义弹出框
最新推荐文章于 2024-05-20 15:39:24 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)