关于IE6下层的透明问题

duck530 2011-07-13 11:56:14

<div iclass="divTest">
<div class="divChild"></div>
<img src="demo_files/sago.jpg" width="300" height="200" class="childImg" />
</div>


.divTest{width:300px;height:200px;position:relative;}
.divChild{width:300px;height:200px;position: absolute;top:0px;left:0px;filter:alpha(opacity=50);opacity:0.5;background-color:white; z-index:100;}
.childImg{top:0px;left:0px;position:absolute;z-index:1;}

请问为什么我这段在IE6下为什么没有效果呢?
...全文
60 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
PHPNewMan 2011-07-28
  • 打赏
  • 举报
回复
filter:Alpha(Opacity=90,Style=0); opacity:0.90;
MuBeiBei 2011-07-28
  • 打赏
  • 举报
回复
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<head runat="server">
<title>Untitled Page</title>
<style>
.divTest{width:300px;height:200px;position:relative;}
.divChild{width:300px;height:200px;position: absolute;top:0px;left:0px;opacity:0.5;filter:alpha(opacity=50);background-color:white; z-index:100;}
.childImg{top:0px;left:0px;position:absolute;z-index:1;}

</style>
</head>
<body>
<div iclass="divTest">
<div class="divChild"></div>
<img src="demo_files/sago.jpg" width="300" height="200" class="childImg" />
</div>


</body>
</html>
灭离 2011-07-14
  • 打赏
  • 举报
回复
我也遇到这样的问题

你到
http://topic.csdn.net/u/20100521/17/512931E6-2500-4481-B4B9-88FE49422DA6.html
上看看能不能帮你

5,006

社区成员

发帖
与我相关
我的任务
社区描述
解读Web 标准、分析和讨论实际问题、推动网络标准化发展和跨浏览器开发进程,解决各种兼容性问题。
社区管理员
  • 跨浏览器开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧