aspx页面代码:
#bgDiv
{
display: none;
position: absolute;
top: 0px;
left: 0px;
right:0px;
background-color: #777;
filter:progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75)
opacity: 0.6;
}
#ElseAddressDiv
{
width: 700px;
height: 290px;
position:absolute;
padding: 10px;
vertical-align: middle;
border: solid 3px #ff8300;
z-index: 10001;
display: none;
background-color:White;
}
<div id="bgDiv">
</div>
<div id="ElseAddressDiv">
<div>
js代码:
function invokeOpen()
{
document.getElementById("ElseAddressDiv").style.display="block";
//背景
var bgObj=document.getElementById("bgDiv");
bgObj.style.display="block";
bgObj.style.width = document.body.offsetWidth + "px";
bgObj.style.height = screen.height + "px";
//定义窗口
//var msgObj=document.getElementById("ElseAddressDiv");
//msgObj.style.marginTop = -75 + document.documentElement.scrollTop + "px";
}
function invokeClose()
{
document.getElementById("ElseAddressDiv").style.display="none";
document.getElementById("bgDiv").style.display="none";
//document.getElementById("CheckElseAddress").setAttribute("checked","false");
//document.getElementById("MoRenAddress").setAttribute("checked","true");
}