jQuery Mobile的转换过程中的闪烁屏幕过程中、屏幕、jQuery、Mobile

2023-09-05 00:32:44 作者:美汉子

我测试内置的jQuery Mobile的1.1.0移动Web应用程序。我测试在Android 4.0上运行的网站应用程序中使用我的Galaxy Nexus的。 有对CSS刷卡过渡讨厌的闪烁和我环顾四周,修复和发现这一点:

I am testing a mobile web application built in jQuery Mobile 1.1.0. I am testing the website application using my Galaxy Nexus running on android 4.0. There is a nasty flicker on the CSS swipe transition and i have looked around for fixes and found this:

.ui-page {
    -webkit-backface-visibility: hidden;
}

然而,当我使用这个功能,在索引网页,其中有一个ListView不显示。请帮我。可能是什么问题?

However, when i use this fix, the index page which has a listview does not display. Please help me. What could be the problem?

推荐答案

我发现了网络这个解决方案: 如果(navigator.userAgent.indexOf(机器人)!= -1){    $ .mobile.defaultPageTransition =无;    $ .mobile.defaultDialogTransition =无; } 我的Andr​​oid应用程序写入使用科尔多瓦2.2.0,jQuery的1.8.2和jQuery移动1.2.0中进行了测试。而且我必须说,它的工作原理。我希望jQuery Mobile的开发团队将解决过渡闪烁,但现在唯一的办法就是把它们全部关闭。我想补充一点,我查了一下,从30第一次谷歌搜索欺骗此主题的所有CSS。

I found on network this solution: if (navigator.userAgent.indexOf("Android") != -1) { $.mobile.defaultPageTransition = 'none'; $.mobile.defaultDialogTransition = 'none'; } I tested it on Android app written with use of cordova 2.2.0, jquery 1.8.2 and jquery mobile 1.2.0. And I must say it works. I hope the jquery mobile dev team will solve transitions flickering but now the only way is to turn them all off. I want to add that I checked all css tricked from first 30 google searches on this topic.