jQuery Mobile,使用快速按钮和changePage时转换闪烁

时间:2012-03-12 12:04:47

标签: android jquery-mobile css-transitions

在我的(Android 2.3)Galaxy SII上运行时,我遇到了一些Jquery mobile的问题。 基本上为了避免在更改页面时出现闪烁,我将其添加到我的css中:

 .ui-page {
    -webkit-backface-visibility: hidden;
    -webkit-tap-highlight-color: transparent;
    -highlight-color: rgba(0,0,0,0);
}

工作正常。没有闪烁...... 为了消除点击链接时的延迟,我使用了Google快捷按钮实现,闪烁效果又回来了。

function initFastButtons() {
    new FastButton(document.getElementById("goFastTest"), goSomewhere);
}

在html正文中:

<a href="#testId" id="goFastTest">test</a>


function goSomeWhere() {
    $.mobile.changePage( "#pageTest", { transition: "slide"} );
}

您是否遇到过这种情况?
如何摆脱这种闪烁效应,保持过渡平稳并使快速按钮仍能正常工作?

0 个答案:

没有答案
相关问题