<div class="project">透明的层</div>
<div class="projectText">这里是文字,显示的效果是透明的</div>
css代码:
.project{
244px;
height:183px;
background:#5b5858;
filter:alpha(opacity=35); /*支持IE */
-moz-opacity:0.5; /*支持FF */
opacity:0.5;
}
.projectText{position:relative; height:183px; margin-top:-183px;color:#FFFFFF;}