.overlay{
display: block;
position: absolute;
top: 0%;
left: 0%;
width: 100%;
height: 100%;
background-color: black;
z-index:9998;
-moz-opacity: 0.8;
opacity:.80;
filter: alpha(opacity=20);
}
1.设定好css样式
2.设定一个div,如<div class="overlay"></div>,大功告成~
时间: 2024-11-05 13:37:59