62,046
社区成员
发帖
与我相关
我的任务
分享
function createDiv() {
var shadow = document.createElement("div");
shadow.setAttribute("id", "shadow");
// shadow.style.zIndex = "10";
var box = document.getElementById("GridViewDIV");
box.style.zIndex = "99";
box.style.top = "50%";
box.style.left = "50%";
document.body.appendChild(shadow);
}
function hideDiv() {
var box = document.getElementById("GridViewDIV");
var shadow = document.getElementById("shadow");
box.style.display = "none";
box.style.zIndex = "0";
box.style.top = "0";
box.style.left = "0";
document.body.removeChild(shadow);
return true;
}
.style1
{
width: 97%;
}
#shadow
{
position:absolute;
left:0;
top:0;
right:0;
bottom:0;
margin:0px 0px 0px 0px;
width:100%;
height:100%;
background-color:#0060C0;
filter:alpha(opacity=20);
}
#GridViewDIV{
position:absolute;
left:50%;
top:50%;
width:400px;
height:180px;
margin:-90px 0 0 -200px;
border:1px solid #84A0C4;
background-color:#DFE8F6;
text-align:center;
}
.style4
{
height: 80px;
}
.style5
{
height: 6px;
}