我正在使用 phonegap 在 Blackberry 中开发一个应用程序。我正在使用 jquery mobile1.2.0 进行 UI 设计。问题是,在哪里提供背景图像以使其覆盖整个页面。发生的事情是,图像没有覆盖应用程序中的整个页面,但我在浏览器中的整个页面上得到了相同的图像。为什么会这样或者我可以通过任何其他方式获取页面的图像?CSS 我有背景图像的作者是:
.ui-mobile, .ui-mobile .ui-page {
background-image: url("images/img_bg.jpg") !important;
background-repeat: no-repeat !important;
background-size: 100% 100% !important;
}
最佳答案
你可以使用它,它使用 CSS3-
CSS3 支持可用于黑莓浏览器 - http://caniuse.com/#feat=background-img-opts
.ui-mobile, .ui-mobile .ui-page {
background: url('"images/img_bg.jpg"') no-repeat center center fixed;
background-size: cover;
}
或
关于html - 如何使用 HTML 和 CSS 在 Blackberry OS6 Torch 设备中提供背景图像以覆盖整个页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13757477/