div遮罩

遮罩层
#mask {
/* position: fixed; // 全屏 /
position: absolute; // 绝对路径
left: 0;
right: 0;
top: 0;
bottom: 0;
background: rgba(0, 0, 0, .3);
/
background: red; */
z-index: 99999;
}
弹出层
弹出的div设置z-index: 999999999;才能起到遮罩作用

猜你喜欢

转载自blog.csdn.net/WmingCSDN/article/details/88033094
div