问题
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