css实现遮罩层(解决透明背景上的文字不透明)

.PopUp_layer{
   position:fixed;
   top: 0;
   left: 0;
   right:0;
   bottom:0;
   100%;
   height:100%;
   background:rgba(0,0,0,0.6);
   background:#0009;/*CSS Hack,只能对ie9以下浏览器ie6,ie7,ie8有效,否侧ie10,FF,Cherome会失去透明效果*/
   filter:Alpha(opacity=60);/*只对ie7,ie8有效*/
   z-index:9999999;
}

原文地址:https://www.cnblogs.com/dearxinli/p/3829047.html