遮罩的使用
頁面Div:
<div class="first">
?? ??? ??? ?<!-- 彈出窗口 -->
?? ??? ??? ?<div id="fullbg"></div>
?? ??? ??? ?<div id="dialog">
?? ??? ??? ??? ?<p class="close"><a href="javascript:void(0);" id="close">關(guān)閉</a></p>
?? ??? ??? ??? ?<div style="margin-left: 30px;margin-right: 30px">
?? ??? ??? ??? ??? ?<table style="font-size: 18px;color: black;">
?? ??? ??? ??? ??? ??? ?<tr>
?? ??? ??? ??? ??? ??? ??? ?<td style="text-align:center" align="center" >
?? ??? ??? ??? ??? ??? ????
?? ??? ??? ??? ??? ??? ??? ?</td>
?? ??? ??? ??? ??? ??? ?</tr>
?? ??? ??? ??? ??? ?</table>
?? ??? ??? ??? ?</div>
?? ??? ??? ?</div>
?? ??? ?</div>
?
CSS:
.first{
??? _display: inline;
?? ?float: left;
?? ?margin-right: 10px;
?? ?overflow: hidden;
??? width: 950px;
?? ?margin-right: 0px;
?? ?margin-bottom: 5px;
}
.close {
text-align:right;
padding-right:10px;
}
JS:
function showBg() {
?? ??? ??? ?$("#fullbg").css({
?? ??? ??? ??? ?height:$(document).height(),
?? ??? ??? ??? ?width:$(document).width(),
?? ??? ??? ??? ?display:"block"
?? ??? ??? ?});
?? ??? ??? ?$("#dialog").show();
?? ??? ?};
?? ??? ?
?? ??? ?$("#close").click(
?? ??? ??? ??? ?// 彈出支付驗(yàn)證窗口
?? ??? ??? ??? ?function() {
?? ??? ??? ??? ??? ?$("#fullbg").css({
?? ??? ??? ??? ??? ??? ?height:$(document).height(),
?? ??? ??? ??? ??? ??? ?width:$(document).width(),
?? ??? ??? ??? ??? ??? ?display:"none"
?? ??? ??? ??? ??? ?});
?? ??? ??? ??? ??? ?$("#dialog").hide();
?? ??? ??? ??? ?});
轉(zhuǎn)載于:https://www.cnblogs.com/wangkang0320/p/6508567.html
總結(jié)
- 上一篇: 动态数据绑定之监听对象变化
- 下一篇: A+B 问题