【问题标题】:How to make phonegap app, 'don't use' full screen如何制作phonegap应用程序,“不要使用”全屏
【发布时间】:2016-01-16 13:31:00
【问题描述】:

我正在创建一个 PhoneGap 应用来学习。

这是目前为止的代码:

<!DOCTYPE html>

<html>
    <head>
        <meta charset="utf-8" />
        <meta name="format-detection" content="telephone=no" />
        <meta name="msapplication-tap-highlight" content="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>El Especialista</title>
    </head>
    <body>
        <div class="branca">
            <header>
                <img src="img/logo.png" /> 
            </header>
        </div>
        <script type="text/javascript" src="cordova.js"></script>
        <script type="text/javascript" src="js/index.js"></script>
        <script type="text/javascript">
            app.initialize();
        </script>
    </body>
</html>

当我在 iPhone 上更新 phonegap 应用程序时,标题从顶部开始,在通知栏下方(我的意思是,通知栏在我的应用程序上方,覆盖了应用程序的一部分)

检查底部的图像以更好地理解。

我该如何解决?我的意思是,我知道我可以在顶部添加内边距或边距,这样应用程序将在通知栏之后启动,但在 Android 或其他设备中,屏幕不同,它不会工作。

有什么配置可以让app在iphone和android的通知栏之后?

【问题讨论】:

标签: android ios iphone cordova


【解决方案1】:

在您的 config.xml 中,您可以像这样将首选项全屏显示:

<preference name="fullscreen" value="false" />

你可以在这里找到一些文档:

http://docs.build.phonegap.com/en_US/2.9.0/configuring_preferences.md.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-20
    • 2015-09-22
    • 2016-11-06
    • 1970-01-01
    相关资源
    最近更新 更多