.overlay{
position:absolute;
top:0;
left:0;
height:100%;
width:100%;
background:url(hex-shape.png) no-repeat center;
z-index:99999;
}
我的背景图像是整个页面的覆盖图。我想用白色覆盖覆盖图像的其余部分填充页面的其余部分,但不要覆盖其中。
我正在用它在屏幕中间构图。
这个想法是页面可以在背景图像后面是全彩的,但由于边框或图像周围的任何东西而仍然是不可见的。
.overlay{
position:fixed;
top:0;
left:0;
bottom:0;
right:0;
background: #{your_color} url(hex-shape.png) no-repeat center;
z-index:99999;
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句