jQuery Mobile and header/footer issue

我与影子孤独终老i 提交于 2019-12-12 08:59:46

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/6360478/jquery-mobile-and-header-footer-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!