Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/424.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript jQuery Mobile-无法在移动浏览器上缩小页面_Javascript_Jquery_Html_Jquery Mobile_Mobile - Fatal编程技术网

Javascript jQuery Mobile-无法在移动浏览器上缩小页面

Javascript jQuery Mobile-无法在移动浏览器上缩小页面,javascript,jquery,html,jquery-mobile,mobile,Javascript,Jquery,Html,Jquery Mobile,Mobile,我使用jquerymobile1.4,我的网页包含一个内容比设备宽度宽的页面。请参见此示例: <!DOCTYPE html> <html> <head> <title>CMYK</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <

我使用jquerymobile1.4,我的网页包含一个内容比设备宽度宽的页面。请参见此示例:

<!DOCTYPE html>
<html>
<head>
    <title>CMYK</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" href="../jquery.mobile/jquery.mobile.min.css?r=$(REVISION)">
    <script src="../jquery/jquery.min.js?r=$(REVISION)"></script>
    <script src="../jquery.mobile/jquery.mobile.min.js?r=$(REVISION)"></script>
</head>
<body>
<div data-role="page">
    <div data-role="header" data-theme="b">
        <h1>CMYK</h1>
    </div>
    <div data-role="content">
        <p>This content is generated by the server:</p>
        <table style="width: 1920px">
            <tr>
                <td style="width: 480px; background: cyan;">cyan</td>
                <td style="width: 480px; background: magenta;">magenta</td>
                <td style="width: 480px; background: yellow;">yellow</td>
                <td style="width: 480px; background: black;">key</td>
            </tr>
            <tr>
                <td style="width: 480px; background: cyan;">cyan</td>
                <td style="width: 480px; background: magenta;">magenta</td>
                <td style="width: 480px; background: yellow;">yellow</td>
                <td style="width: 480px; background: black;">key</td>
            </tr>
            <tr>
                <td style="width: 480px; background: cyan;">cyan</td>
                <td style="width: 480px; background: magenta;">magenta</td>
                <td style="width: 480px; background: yellow;">yellow</td>
                <td style="width: 480px; background: black;">key</td>
            </tr>
        </table>
    </div>
</div>
</body>
</html>

在桌面浏览器Chrome、FF上,我可以放大和缩小以显示所有内容。但在移动浏览器iOS上,安卓i只能放大,不能缩小。如何在移动浏览器上启用缩小功能?我知道我可以在viewport meta标记中设置=1920,但它会影响使用jQM的所有页面。

您的页面上似乎没有太多文本,因此请尝试不使用-@Tasos,这对我来说不是解决方案,因为在其他页面上,我需要使用width=设备宽度才能进行移动响应。请注意,jQueryMobile只读取head部分一次。