Flickering when navigating between pages

后端 未结 12 1745
日久生厌
日久生厌 2020-11-28 21:32

My phonegap/jquery mobile application flickers most of the time when I navigate between the pages. Is this normal or is there a solution for this?

12条回答
  •  野性不改
    2020-11-28 22:00

    I got rid of the flicker on iOS! With static header and footer.

    I have my css as below and no data-position="fixed" on the header and footer.

    .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%;
    }
    

提交回复
热议问题