求助关于css透明样式处理的问题?
求?
最近在做个层透明样式,结果出乎意料的是里面的文字也相应的淡了许多,求高手给个只要层的背景通明,但内容图片什么的保持不变的css样式.
------解决方案-------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN " "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd ">
<HTML xmlns= "http://www.w3.org/1999/xhtml ">
<meta http-equiv= "Content-Type " content= "text/html; charset=gbk ">
<title> 透明 </title>
<head>
<style>
#popupmenu_popup {
color: #154BA0;
border: 1px solid #86B9D6;
background: #D9EEF9;
filter: Alpha(Opacity=50, Style=0);!important;
opacity: 0.50;
position: absolute;
z-index: 30;
left:300px;
top: 64px;
height: 300px;
width:400px;
}
#popupmenu_text {
color: #154BA0;
position: absolute;
z-index: 40;
left:301px;
top: 65px;
height: 298px;
width:398px;
text-align:center;
}
</style>
</head>
<body >
<div id= "popupmenu_popup "> </div>
<div id= "popupmenu_text "> sssssssssssssssssssssssssssssssss </div>
</body>
</html>