css代码
.myWin {
display: none;
position: absolute;
top: 15%;
left: 10%;
55%;
height: 55%;
padding: 20px;
/* border: 10px solid #5298d1; */
background-color: #7cd8d7;
z-index: 1002;
overflow: auto;
}
.myBtn {
margin-right: 10%;
8%;
height: 8%;
padding: 20px;
}
html代码
<div class="myWin">
<div id="title">请选择常用联系人:</div>
<div id="bodyContent">
</div>
<div id="myBtn">
<a onclick="certain()">确定</a>
<a onclick="closeWind()">关闭</a>
</div>
</div>
js代码
function closeWind() {
$(".myWin").css("display", "none");
}
function certain() {
mySelectUser();
//closeWind();
}