闪烁问题与智能手机的 GPU 内存有关。内存是有限的(VRAM),如果元素太复杂或大于内存,就会耗尽。在带有 CyanogenMod rom 的 android 中,您可以在屏幕上查看带有颜色的 gpu 处理。从绿色(低使用率)到红色(高使用 gpu)。 Demo image。但是不知道有没有类似的IOS工具。
这在应用的所有转换或使用 GPU 时都可见。
无论如何,您都可以尝试删除/降低元素的复杂性,或者来自here:
选项 1
<meta name="viewport" content="width=device-width, user-scalable=no" />
选项2this:
.ui-page {
-webkit-backface-visibility: hidden;
}
选项 3 this:
.ui-mobile, .ui-mobile .ui-page, .ui-mobile [data-role="page"],
.ui-mobile [data-role="dialog"], .ui-page, .ui-mobile .ui-page-active {
overflow: hidden;
-webkit-backface-visibility: hidden;
}
.ui-header {
position:fixed;
z-index:10;
top:0;
width:100%;
padding: 13px 0;
height: 15px;
}
.ui-content {
padding-top: 57px;
padding-bottom: 54px;
overflow: auto;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.ui-footer {
position:fixed;
z-index:10;
bottom:0;
width:100%;
}
或者只是删除转换(如果问题出在转换中):
选项 4
'-webkit-transition': 'none !important',
'-moz-transition': 'none !important',
'-o-transition': 'none !important',
'-ms-transition': 'none !important',
'transition': 'none !important'