【问题标题】:How to set background image as fixed for android 4.x with phonegap?如何使用phonegap将背景图像设置为android 4.x的固定?
【发布时间】:2023-03-16 20:35:01
【问题描述】:

我正在使用phonegap 2.0 开发一个android 应用程序。我使用在谷歌浏览器上运行的波纹插件调试我的应用程序。涟漪上一切正常,但在 android 上却不行。在 android 上,背景图像不固定。我在谷歌上进行了大量搜索,但找不到任何解决方案。

我的 CSS 是:

background-image: url('../img/hdpi/App_Bg.png') !important;
background-repeat: no-repeat !important;
background-attachment: fixed !important;
background-size: 100% 100% !important;
background-position:100% 100% !important;

如何将背景图像设置为 android webkit 浏览器的固定?有什么神奇的解决方案吗?

【问题讨论】:

  • 只有当你能说出修复图像的含义时。

标签: android css cordova android-emulator


【解决方案1】:

您是否包含了这些元标记?

<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no", ,height=device-height/>
<meta name="layout" content="mobile"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-06
    • 2017-07-31
    • 1970-01-01
    相关资源
    最近更新 更多