如您所见,我的页面底部仍然是一个空白区域。它的高度与 ios6 中的旧状态栏相同。我必须修改css吗?因为我从未为我的应用程序固定高度,所以 worklight 总是选择合适的尺寸。
编辑:您必须保存图像并在具有不同颜色的桌面中打开才能看到底部的空白。
*
* Licensed Materials - Property of IBM
* 5725-G92 (C) Copyright IBM Corp. 2011, 2013. All Rights Reserved.
* US Government Users Restricted Rights - Use, duplication or
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
*/
// This method is invoked after loading the main HTML and successful initialization of the Worklight runtime.
function wlEnvInit(){
wlCommonInit();
// Environment initialization code goes here
}
//Wait for Cordova to load
//
document.addEventListener("deviceready", onDeviceReady, false);
// Cordova is ready
//
function onDeviceReady() {
alert(device.version);
if(device.version > "6.0")
$(".elmecHeader").css("height", "70px");
}