CSS创建一个遮罩层时间:2023-03-09 00:28:32 .layer{ width: 100%; position: absolute; left:; right:; top:; bottom:; -moz-opacity:; filter: alpha(opacity=50); z-index:; height: 100%; margin:0 auto; } 创建一个遮罩层。