下面 这个 只在 火狐里 有效,求 指点 在 火狐 和 ie6里 均 有效 的 css
.btm /*半透明层*/
{
position:absolute;
left:0;
top:0;
height:100%;
width:100%;
background:#000;
filter: alpha(opacity=50);
-moz-opacity:0.5;
opacity: 0.5;
z-index:1000;}
.btm /*半透明层*/
{
position:absolute;
left:0;
top:0;
height:100%;
width:100%;
background:#000;
filter: alpha(opacity=50);
-moz-opacity:0.5;
opacity: 0.5;
z-index:1000;}
filter: alpha(opacity=50);
-moz-opacity:0.5;
opacity: 0.5;
这句 不、就是让浏览器都有 滤镜的效果么
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style type="text/css">
#container{ border:1px solid #c00; background-color:rgba(212,0,0,0.5); background:#f00\9; filter:alpha(opacity=50); width:500px; margin:40px auto; line-height:200%; font-size:14px; padding:14px;}
#container *{ position:relative;}
</style>
</head>
<body>
<div id="container">
<span>我是内容我是内容我是内容我是内容我</span>
</div>
</body>
</html>