<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>请勿在微信聊天中打开本站</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        /* 自适应居中 */
        html, body {
            height: 100%;
            margin: 0;
        }
        body {
            display: flex;
            justify-content: center;
            align-items: center;
        }
        /* 按钮样式 */
        .btn {
            display: inline-block;
            padding: 10px 20px;
            background-color: #4CAF50;
            color: white;
            font-size: 16px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        .btn:hover {
            background-color: #3e8e41;
        }
    </style>
</head>
<body>
    <p>请勿在微信聊天中打开本站</p>
    <p>点击下方按钮复制本站网址</p>
    <button class="btn" onclick="copyUrl()">点此复制本站网址判断</button>
    <script>
        function copyUrl() {
            var url = window.location.href;
            var input = document.createElement('input');
            input.setAttribute('value', url);
            document.body.appendChild(input);
            input.select();
            document.execCommand('copy');
            document.body.removeChild(input);
            alert('复制成功');
        }
    </script>
</body>
</html>
请勿在微信聊天中打开本站 - 使用浏览器打开

原文地址: https://www.cveoy.top/t/topic/jqjM 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录