• Geek asks and answers

    Navbar in jQuery Mobile

    I have this footer navigator

    <footer data-role="footer">
        <div data-role="navbar" data-iconpos="top">
            <ul>
                <li><a href="a.html" class="ui-btn-active" data-icon="star">Fav</a></li>
                <li><a href="b.html" data-icon="back">Recent</a></li>
                <li><a href="a.html" data-icon="delete">Contacts</a></li>
                <li><a href="b.html" data-icon="grid">Keypad</a></li>
                <li><a href="a.html" data-icon="delete">Voicemail</a></li>
            </ul>
        </div><!-- /navbar -->
    </footer>
    

    http://jquerymobile.com/test/#/test/docs/toolbars/docs-navbar.html says that the navigation bar can take up to 5 elements in one row, but here nav elements are assigned by three columns layout, and the last 2 lithium fall in the second row.

    Did I miss something??

    enter image description here

    +3
    jquery-mobile
    ptamzz Jun 13 '11 at 6:58
    source share
    2 answers

    Try bit 4.1 instead of edge changes to the bleeding.

    Instead of using: http://jquerymobile.com/test/#/test/docs/toolbars/docs-navbar.html Try: http://jquerymobile.com/demos/1.0a4.1/#docs/toolbars/docs- navbar.html

    - 4.1. : http://jsfiddle.net/BCnBN/

    +3
    Phill Pafford 13 . '11 12:17

    , .

    <footer data-role="footer">
        <div data-role="navbar" data-iconpos="top" data-grid="d">
            <ul>
                <li><a href="a.html" class="ui-btn-active" data-icon="star">Fav</a></li>
                <li><a href="b.html" data-icon="back">Recent</a></li>
                <li><a href="a.html" data-icon="delete">Contacts</a></li>
                <li><a href="b.html" data-icon="grid">Keypad</a></li>
                <li><a href="a.html" data-icon="delete">Voicemail</a></li>
            </ul>
        </div><!-- /navbar -->
    </footer>
    
    0
    Shinoj 31 . '12 7:51

    More articles:

    • Checking svn + ssh over vpn using turtle svn, Smartsvn - windows-7 failed
    • asp.net - global.asax Π² ΠΏΡ€ΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠΈ asp.net 2.0 - asp.net
    • Is there a good free doc-to-chm converter? - converter
    • Correct way to debug SVN + SSH verification through VPN failure? How to compare with a working installation? - windows-7
    • How to add jar file to build path - android
    • Mutex can only be released from the same thread that was waiting on it? - multithreading
    • ΠžΡ‚ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠ΅ растрового изобраТСния Π² Ρ€Π΅ΠΆΠΈΠΌΠ΅ просмотра ΠΈΠ·ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠΉ простым Π°Π΄Π°ΠΏΡ‚Π΅Ρ€ΠΎΠΌ - android
    • Software environment for peer-to-peer applications on the Internet - frameworks
    • How to completely or partially block lines on an android? - android
    • is there any way to type "+" in the text box? - html

    All Articles

    Geek-Ask | 2020