在IOS7 + Phonegap中点击时,页面变为白色

时间:2013-09-22 21:21:59

标签: jquery jquery-mobile cordova safari ios7

在我的Phonegap应用程序中使用jQuery,jQuerymobile,在IOS7中加载页面后,点击页面的任何部分都会使页面变白并且所有内容都消失了,这只发生在Ipad4视网膜显示屏上。我正在使用所有重新渲染技术和translatez(0)onload这个页面,并尝试修复它但没有任何作用..任何帮助?

这是我的屏幕。图像是带有图像数据的图像标记。内部每个div的高度和宽度是动态计算的。每个包含图片的div都有position:relative,而对于滚动,我使用的是-webkit-overflow-scrolling:touch

width = window.innerWidth-20;
colWidth = Math.floor(width/3);
imgWidth = colWidth-75;                     
$("#div_all_subcategories_level2").css("width",width+"px");
$(".sw1").css("width",(colWidth-25)+"px").css("height",(colWidth-25)+"px");
$(".cls_img_subcat_l2").css("width",colWidth-25+"px").css("height",colWidth-25+"px");

enter image description here

0 个答案:

没有答案