<style type="text/css"> .kffixedgzhbg{width:100%;height:100%;background:#000; position:fixed;top:0;left:0;z-index:1000; opacity:0.7;filter:alpha(opacity =70); display: none;} .kffixedgzhbox{height:auto; width:80%; min-height:300px; color:#FFFFFF; z-index:2000; margin:auto; position:fixed; left:50%; top:50%; transform:translate(-50%,-50%); border-radius:5px; text-align: center; overflow: hidden; display: none;} .kffixedgzhbox .title{ font-size: 20px; line-height: 35px; color: #000000; margin-top: 15px;} .kffixedgzhbox .title em{ background: url("/images/ico_title1.png") no-repeat 0px 10px; margin: 0px 5px; background-size: 20px; display: inline-block; width: 25px; height: 24px;} .kffixedgzhbox .title em:last-of-type{background-image: url("/images/ico_title2.png");} .kffixedgzhbox .title1{ font-size: 14px; line-height: 20px; color: #1fbf8c; margin-bottom: 10px;} .kffixedgzhbox .qrcode{ max-width: 800px; margin: auto;} .kffixedgzhbox .qrcode img{ width: 100%;} .kffixedgzhbox .close{ line-height: 55px; font-size: 18px; letter-spacing: 2px; } </style> <div class="kffixedgzhbg"></div> <div class="kffixedgzhbox"> <div class="qrcode"><img src="/images/618.jpg" /></div> <div class="close">关闭</div> </div> <script type="text/javascript" src="/js/m.js"></script> <script type="text/javascript"> function getCookie(name) { var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)")); if(arr != null) return unescape(arr[2]); return ""; } function setCookie(name,value,Days) { var exp = new Date(); exp.setTime(exp.getTime() + Days*24*60*60*1000); document.cookie = name + "="+ escape (value) + ";path=/;expires=" + exp.toGMTString(); } $(function(){ var ua = navigator.userAgent.toLowerCase(); if (ua.match(/MicroMessenger/i) == "micromessenger") { if(getCookie("fixedgzh")=="") { setCookie("fixedgzh","1",2); $(".kffixedgzhbg").show(); $(".kffixedgzhbox").show(); } } $(".kffixedgzhbox .close").on("click",function(e){ $(".kffixedgzhbg").hide(); $(".kffixedgzhbox").hide(); }); }); </script> 这个弹窗代码目前仅在微信端展示,想改成所有访问都展示,请问如何修改?谢谢。