简体   繁体   中英

jQuery Mobile and header/footer issue

With jQuery Mobile does anybody know why when using the changePage() function to change to a page where the content exceeds the height of the viewport does the header of the page disappear and the footer appear in view over the top of the content?

This only happens when you use a transition to change page, if you change page without a transition the header remains and the footer is correctly positioned at the end of the content.

Thanks

I've been troubleshooting this issue all morning because I was having the same one. I don't exactly know what is wrong with the jQuery mobile script, but for some reason it is failing to hide the x-axis overflow for the inactive windows after a page transition effect. I fixed the problem by putting the following CSS inside the page div of the page being transitioned to.

.ui-mobile, .ui-page { overflow-x: hidden!important; }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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