jQuery Mobile/PhoneGap应用程序在Android设备上显示得非常广泛,但在WP7 emulator中却没有

jQuery Mobile/PhoneGap应用程序在Android设备上显示得非常广泛,但在WP7 emulator中却没有,android,jquery-mobile,cordova,hybrid-mobile-app,Android,Jquery Mobile,Cordova,Hybrid Mobile App,我使用jQuery mobile和PhoneGap创建了一个移动应用程序。当我在WindowsPhone7模拟器上运行该应用程序时,它将以预期宽度显示。 然而,当我创建一个apk并在我的android设备上测试应用程序时,它显示的宽度要大得多。 根据我的研究,一切都指向视口元标记,我已经处理过了 <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" cont

我使用jQuery mobile和PhoneGap创建了一个移动应用程序。当我在WindowsPhone7模拟器上运行该应用程序时,它将以预期宽度显示。

然而,当我创建一个apk并在我的android设备上测试应用程序时,它显示的宽度要大得多。

根据我的研究,一切都指向视口元标记,我已经处理过了

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="format-detection" content="telephone=no" />
        <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
        <link rel="stylesheet" type="text/css" href="css/index.css" />
        <title>Circle of Death 2.0</title>
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <meta name="apple-mobile-web-app-status-bar-style" content="black" />
        <link rel="stylesheet" href="css/jquery.mobile-1.3.1.min.css" />
        <script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
        <script type="text/javascript" src="js/jquery.mobile-1.3.1.min.js"></script>
        <script type="text/javascript" src="cordova-2.7.0.js"></script>
        <script type="text/javascript" src="js/GameLib.js"></script>
    </head>
    <body>
        <div class="app" id="deviceready">
            <div data-role="page" id="page1">
                <div data-role="content">
                    <div>
                        <img src="img/CircleOfDeath2Title.png" alt="Circle of Death" width="100%" />
                    </div>
                    <div style="text-align: center; padding: 10px;">
                        <img src="img/cardback.png" alt="Card Deck" onclick="DrawCard();" id="CardDeck" />
                    </div>
                    <div>
                        <h2 id="RuleTitle" style="margin:0px;"></h2>
                    </div>
                    <div>
                        <span id="Directions"></span>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>

死亡圈2.0
在使用PhoneGap和jQuery Mobile时,还有其他人看到过这个问题吗?
提前感谢。

您的视口标记中有很多内容,我的phonegap应用程序在android中运行良好,只需使用以下视口标记即可:

<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">


你的viewport标签中有很多东西,我的phonegap应用程序在安卓系统中运行良好,只需
就可以了!我用你的替换了我的视口元标记,现在看起来不错。谢谢你,尼尔森。