61,112
社区成员
发帖
与我相关
我的任务
分享
<!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>无标题文档</title>
<style type="text/css">
body{ background-color:#666;}
.a
{
width:300px; height:300px; position:absolute;top:50%;left:50%; margin-top:-150px; margin-left:-150px;
}
.b{ background:#09F; height:100%; width:100%; opacity:0.6; filter:alpha(opacity=60); -moz-opacity:0.6; -moz-border-radius: 5px; }
.c{ text-align:center; height:280px; width:280px; top:10px; left:10px; position:absolute; background:#FFF;-moz-border-radius: 1px;}
.d{ width:100%; background:#F00; height:10px; top:50%; position:absolute;}
</style>
</head>
<body>
<div class="d"></div>
<div class="a">
<div class="b"></div>
<div class="c">这里显示内容</div>
</div>
</body>
</html>