div css 实现半透明效果

css

.project{ position:relative;width:288px; height:183px;}
.project .box{ position:absolute; top:0px; left:0px; display:block; width:288px; height:183px; color:#FFF; padding:10px; opacity: 0.8;filter: alpha(opacity=80);-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";}

html

<div class="project">
<div class="box">
div css 实现半透明效果测试文字
</div>
</div>