other 遮罩层

时间:2023-03-10 05:37:26
other 遮罩层
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css">
<title>无标题文档</title>
<style>
#div1{
position:absolute;
left: 50%;
top: 50%;
margin-left: -200px;
margin-top: -100px;
width:400px;
height: 200px;
background: white;
border: 2px solid #ccc;
padding: 15px;
z-index: 6;
}
h1{
text-align: center;
}
.center{
width: 200px;
margin: 0 auto; }
#wrap{
width: 100%;
height: 100%;
background: gray;
z-index: 5;
position: absolute; top: 0%; left: 0%;
display: block;
-moz-opacity: 0.7;
opacity:.70;
filter: alpha(opacity=70);
}
</style>
</head>
<body>
<div id = "wrap"></div>
<div id = "div1">
<h1>我是标题党</h1>
<a class="btn btn-default center">OK</a>
</div>
<div id = "div2">
<p>装修流程, 菜鸟入门 一、 前期设计
在前期设计中,我们必须还要做的一件事,那就是对自己的房间进行一次详细的测量,这除了让你购买建材时准确外,在结算时更能免遭被黑
家具配饰还包括可以考虑买一些绿色植物、挂墙画、摆设工艺品…………总之,入住之后,你就可以*发挥了。这个时候,你已经由菜鸟荣升为装修大师了。 </p>
<a href="http://www.hao123.com/" class="btn btn-default center">GOGOGO</a>
</div> </body>
</html>