Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>jQM documentation must be read carefully. If you want navbar on every page you need to put it on every page. With:</p> <pre><code>...data-position="fixed" data-id="footer"... </code></pre> <p>in header and footer a like.</p> <p>Here's a working example: <a href="http://jsfiddle.net/Gajotres/Beq4H/" rel="nofollow">http://jsfiddle.net/Gajotres/Beq4H/</a></p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Share QR&lt;/title&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1"/&gt; &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" /&gt; &lt;script src="http://code.jquery.com/jquery-1.7.2.min.js"&gt;&lt;/script&gt; &lt;script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div data-role="page" id="home"&gt; &lt;div data-role="header" data-theme="b" data-position="fixed" data-id="footer"&gt; &lt;a href="#home" data-icon="home" data-iconpos="notext"&gt;Home&lt;/a&gt; &lt;h1&gt;Share QR&lt;/h1&gt; &lt;/div&gt; &lt;div data-role="content"&gt; &lt;p&gt;Hello world!&lt;/p&gt; &lt;/div&gt; &lt;div data-role="footer" data-theme="b" data-position="fixed" data-id="footer"&gt; &lt;div data-role="navbar"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#about" data-transition="slide"&gt;page2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#about" data-transition="slide"&gt;page3&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div data-role="page" id="about"&gt; &lt;div data-role="header" data-theme="b" data-position="fixed" data-id="footer"&gt; &lt;a href="#home" data-icon="home" data-iconpos="notext"&gt;Home&lt;/a&gt; &lt;h1&gt;About&lt;/h1&gt; &lt;a href="#home" data-icon="arrow-l" data-rel="back"&gt;Back&lt;/a&gt; &lt;/div&gt; &lt;div data-role="content"&gt; &lt;p&gt;Share your favorite URLs with other mobile phone users through QR codes.&lt;/p&gt; &lt;/div&gt; &lt;div data-role="footer" data-theme="b" data-position="fixed" data-id="footer"&gt; &lt;div data-role="navbar"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#home" data-transition="slide"&gt;page2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#home" data-transition="slide"&gt;page3&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload