测试htnl

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <title>HTML with Image</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            line-height: 1.5;
            color: #333;
            background-color: #fff;
            padding: 15px;
            -webkit-text-size-adjust: 100%;
        }
        .image-container {
            margin: 15px auto;
            width: 100%;
        }
        img {
            display: block;
            width: 100%;
            height: auto;
            border: 1px solid #eee;
            border-radius: 4px;
        }
        .caption {
            margin-top: 8px;
            font-size: 14px;
            color: #666;
            text-align: center;
        }
        p {
            margin: 15px 0;
            font-size: 16px;
            text-align: center;
        }
    </style>
</head>
<body>
    <div class="image-container">
        <img src="http://obs.cn-hazz1.ctyun.cn/lhsh-bucket/%E6%9C%AA%E6%A0%87%E9%A2%98-22.jpg?AWSAccessKeyId=DXLIQA0EQLWB3JTTJCIS&Expires=2063839937&Signature=EmxmTXTUB90SFdN9mUg5391muJY%3D" alt="Example Image">
    </div>
    
    <script>
        // Disable zooming on double-tap in iOS
        document.addEventListener('gesturestart', function(e) {
            e.preventDefault();
        });
        
        // Disable pinch zoom
        document.addEventListener('touchmove', function(e) {
            if(e.scale !== 1) { e.preventDefault(); }
        }, { passive: false });
    </script>
</body>
</html>

 

posted @ 2025-05-28 11:36  王亚锋  阅读(11)  评论(0)    收藏  举报