<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>每15秒弹窗</title>
<style>
/* 公共样式 */
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
.popup-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}
.popup-content {
background-color: #fff;
padding: 20px;
text-align: center;
max-width: 80%;
width: 280px;
box-sizing: border-box;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.qrcode-img {
width: 100%;
max-width: 250px;
margin-bottom: 10px;
}
.message {
margin-bottom: 10px;
}
.button {
cursor: pointer;
background-color: #4CAF50;
color: #fff;
border: none;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
border-radius: 5px;
}
</style>
</head>
<body>
<div class="popup-container" id="popup-container" style="display:none;">
<div class="popup-content">
<img src="weixin-pic.png" alt="微信二维码" class="qrcode-img">
<div class="message">扫描二维码添加好友</div>
<button class="button" onclick="copyWechat()">我知道了</button>
</div>
</div>
<script>
<!–重要部分隐藏–>
</script>
</body>
</html>



