div {
position: fixed;
width: 100vw;
height: 100vh;
top: 0;
left: 0;
display: flex;
justify-content: center;
align-items: center;
background: rgba(0,0,0,.5);
}
css 设置遮罩层
最新推荐文章于 2024-05-30 16:48:43 发布
div {
position: fixed;
width: 100vw;
height: 100vh;
top: 0;
left: 0;
display: flex;
justify-content: center;
align-items: center;
background: rgba(0,0,0,.5);
}