设置透明对象内不透明部分的CSS属性position为relative
<html>
<head>
<style>
.div1{filter:alpha(Opacity=5);width:100%;height:100%;background:#000;}
.div2{background:#f00;position:relative;}
</style>
</head>
<body>
<div class="div1"><div class="div2">如何让透明层里的内容不透明?<p>
设置透明对象内不透明部分的CSS属性position为relative
</p></div></div>
</body>
</html>
关键字:透明 登陆