简体   繁体   English

CSS动画仅使iPad上的Phonegap App崩溃

[英]CSS animation crashes Phonegap App on iPad only

My Phonegap App I am using High resolution images and zooming functionality using iScroll. 我的Phonegap应用程序我正在使用高分辨率图像和通过iScroll进行缩放的功能。 But it looks blur so i got one solution add css translate. 但是它看起来很模糊,所以我得到了一种解决方案,添加CSS翻译。 It solves my image blur issue but in iPad2 my App crashes due to this css transform. 它解决了我的图像模糊问题,但是在iPad2中,由于此CSS转换,我的应用程序崩溃了。

transform: translate3d(0,0,0);
-webkit-transform: translate3d(0,0,0);

@Krishna, @克里希纳,
Those specific CSS strings transform: translate3d(0,0,0); 那些特定的CSS字符串transform: translate3d(0,0,0); are used to turn on hardware acceleration . 用于打开硬件加速 At least, that is what I read again and again. 至少,这是一次又一次阅读的内容 If you know that they are making you App crash, take them out. 如果您知道它们使您的应用程序崩溃,请将其删除。 I don't see the issue. 我没有看到这个问题。

The answer to your blurring, try something else - like increasing your pixel density . 要解决模糊问题,请尝试其他方法,例如增加像素密度

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM