遮罩层

`
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<meta content="telephone=no" name="format-detection"><meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title>浮层</title>
<link rel="stylesheet" type="text/css" href="PUBLIC/Wechat/css/common.css"/>
<link rel="stylesheet" type="text/css" href="PUBLIC/Wechat/css/test/pay.css"/>
<style type="text/css">
.r_1>div{display: none;}
</style>
<script type="text/javascript" src="PUBLIC/Wechat/js/jquery-1.7.2.min.js"></script>
</head>
<body>
<div id="pay_mask">
<ul class="pay_mask">
<li class="pay_city">
<p class="font_15">上海市</p>
</li>
<li class="pay_card">


<p class="color_jh">扫一扫,加客服微信噢!</p>
</li>
<li class="pay_num pay_a">
<div class="float_l pay_pic">

</div>
<p class="color_jh font_13">13633666633</p>
</li>
<li>
<button class="font_13 color_sl pay_btn">立即支付</button>
</li>
<li class="pay_close_btn"><div></div></li>
</ul>
</div>
<script type="text/javascript">
$(function(){
var p_mask_h = $(window).height() - $("#i_header").height();
$(".p_register").click(function(){
$("body").height(p_mask_h);
$("body").css({"overflow":"hidden"});
$("#pay_mask").show();
});
$(".pay_close_btn>div").click(function(){
$("#pay_mask").hide();
});
});
</script>
</body>
</html>

`

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 原题:用js实现,弹窗弹出时需要有半透明的蒙层,位置需要根据弹窗的大小实现左右、垂直居中,对话框需要有标题栏(标题...
    离铭阅读 4,019评论 0 0
  • 小把戏<!DOCTYPE html> *{margin: 0; padding: 0;}.box1{wi...
    张宪宇阅读 3,741评论 0 1
  • 妹的,移动弹出浮层后,想滚动浮层内部的内容。可是发现html也跟着滚不可理喻,可恶的是 chrome 测试是没问题...
    cca1000阅读 3,362评论 0 0
  • 欢迎使用 Cmd Markdown 编辑阅读器 我们理解您需要更便捷更高效的工具记录思想,整理笔记、知识,并将其中...
    arcral阅读 1,391评论 0 0
  • 一大早,天阴沉沉的,知道是雨将至,准备好雨衣,迈着轻快的步子前往早市。与其说去买早餐,不如说是为了见卷饼夫妇——虔...
    Oak水木阅读 1,228评论 0 0