请教高手,div弹出(遮罩层)效果在ie6下为何不能实现!?

如题。
代码如下:
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>LIGHTBOX EXAMPLE</title>
<style>
.black_overlay{ display: none; position: absolute; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:1001; -moz-opacity: 0.8; opacity:.80; filter: alpha(opacity=80); } .white_content { display: none; position: absolute; top: 25%; left: 25%; width: 50%; height: 50%; padding: 16px; border: 16px solid orange; background-color: white; z-index:1002; overflow: auto; } </style>
</head>
<body>
可以根据自己要求修改css样式<a href="javascript:void(0)" onclick="document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">点击这里打开窗口</a>
<div id="light" class="white_content">
This is the lightbox content.
<a href="javascript:void(0)" onclick="document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">
Close</a></div>
<div id="fade" class="black_overlay">
</div>
</body>
</html>

我想问下,为什么这段代码在火狐下可以实现而在ie6下却不能实现。如果把第一句代码去掉,就可以在ie6下实现。不要说什么版本问题(火狐或ie6,xhtml等),如果是版本问题,那么在ie6下应如何实现?跟上面的代码有何区别?谢谢!!!
IE6 里面无法实现 自定义height的100%高度,
只能设置准确的败兆核大小值,但是在IE7以上微软重新回归W3C标准,
所以你删除第一行以猜亏后察掘,就没有定义网页的标准,所以就出现你上面说的那种情况了!