<style type="text/css">
.div{
background:rgba(0, 0, 0, 0.4) none repeat scroll 0 0 !important;/*实现FF背景透明,,文字不透明*/
filter:Alpha(opacity=40); background:#000000;/*实现IE背景透明*/
color:#FFF;
width:500px;
height:500px;
border:1px solid #FF0;
font-size:18px;
text-align:center;
font-weight:bold;
margin-top:120px;
}
</style>
<body>
<div class="div">我的背景半透明</div>
</body>
造物之前,必先造人。