0
这是我尝试一下:JSFIDDLE使用:后CSS生成全屏面具
因为我重写现有的一些风格,我需要补充的背后我box
.box {
position:fixed;
background:red;
height:50%;
width:200px;
top:0;
left:0;
bottom:0;
right:0;
z-index:1000;
margin:auto;
}
.box:after {
content:"";
position:fixed;
top:0;
left:0;
bottom:0;
right:0;
background:rgba(255,255,255,0.8);
z-index:999;
}
半透明面具
看到小提琴中的样品,我不明白为什么盒子也覆盖了它的:after
风格?
感谢您的关注!
谢谢!这是否意味着我不能意识到它,除非在源html上进行修改? – Darklizard
的确如此。我会尽力为你准备一个解决方案。 – matewka
看我的编辑,让我知道它是否适合你。 – matewka