It has data-position=”fixed” so It will display every time even you have to scroll a page. Now let’s see the problem I have faced with this.
So, I got a solution of this problem by using one attribute of jQuery mobile and to do this, I have used jQuery mobile attribute data-tap-toggle.
So, Let’s see the code:
<div data-role="header" data-position="fixed" data-tap-toggle="false">
<div><a href="#" data-rel="back">back</a>
<div><a href="#home" >home</a>
Here I have added tag into a header to keep it fixed on the top of the screen. Tap toggle will keep the header even if you scroll/tap on the body.
Other posts,You may like: