fixed toolbar issue with jquery mobile

社会主义新天地 提交于 2019-12-06 08:33:20

问题


I'm working on a PHP interface that will be used in a restaurant inside tablets for taking orders. I'm using jQuery Mobile. To minimize loading times I've created a single page with all the UI and the content part of the page is blank, just the div. When I click on a link I use Ajax to load in the empty content div the pages. I've a fixed header and a fixed footer. The problem is that when I touch or click in a blank area of the loaded pages, header and footer move and go away, header on the top and footer on the bottom of the entire loaded page, and if I click again they return in the right place. This is not happening when I click or touch on a href link inside the content page.

Can you help me?


回答1:


I found a solution on this post.

Just add data-tap-toggle="false" to the fixed element.



来源:https://stackoverflow.com/questions/13118118/fixed-toolbar-issue-with-jquery-mobile

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