搞了很久,后来在网上看到这个方法不错
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>CSS层的半透明效果 - /</title>
<meta http-equiv="content-Type" content="text/html;charset=gb2312">
<style type="text/css">
body {background:url('/images/logo.gif');}
#box {position:relative; overflow:hidden; z-index:1; width:462px; margin:0 auto; border:1px solid #333;height:300px;paddign:30px;}
#box #opa {position:absolute; z-index:-1; width:100%; height:100%; top:0; left:0; background:#fff; filter:alpha(opacity=86); opacity:0.6;}
* #box #opa {height:10000px; height:10000px;}
</style>
</head>
<body>
<div id="box"><center><br><br><br>这个层是不是半透明了呢?</center><div id="opa"></div></div>
</body>
</html>