【小技巧】DIV高度100%和透明的一种写法

Code
<!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" />
<style>
/*zishu.cn*/
*
{ margin:0; padding:0;}
body
{ height:100%;}
#yin
{ width:100%;  background: #FF6633; position:absolute; left:0; right:0; top:0; bottom:0; -moz-opacity:0.5; filter:alpha(opacity=50);z-index:99; height:100%; }
</style>
</head>
<body>
<img src="http://www.zishu.cn/attachments/month_0609/n2006922205933.gif" alt="" />
<div id="yin"></div>
</body>
</html>
posted @ 2009-03-21 16:19  海洋——海纳百川,有容乃大.  阅读(269)  评论(0编辑  收藏  举报