A bottom navbar in jQuery mobile looking like iPhone navbar, possible?

后端 未结 1 1606
隐瞒了意图╮
隐瞒了意图╮ 2020-12-05 05:54

I created my website with jQuery mobile and I would like to build the same bottom toolbar as showed on the picture below. Can someone point me in the right direction?

<
1条回答
  •  情书的邮戳
    2020-12-05 06:38

    Well for the icons you can use: http://glyphish.com/

    A quick live version: http://jsfiddle.net/vh4Ca/62/

    HTML

     
    

    CSS

    .nav-glyphish-example .ui-btn .ui-btn-inner {
        padding-top: 40px !important; 
    }
    
    .nav-glyphish-example .ui-btn .ui-icon { 
        width: 45px!important; 
        height: 35px!important; 
        margin-left: -24px !important; 
        box-shadow: none!important; 
        -moz-box-shadow: none!important; 
        -webkit-box-shadow: none!important;
        -webkit-border-radius: none !important;
        border-radius: none !important; 
    }
    
    #favorite .ui-icon { 
        background-image: url(http://glyphish.com/images/demo.png);
        background-position: -345px -112px;
        background-repeat: no-repeat;
    }
    
    #recent .ui-icon { 
        background-image: url(http://glyphish.com/images/demo.png);
        background-position: -9px -61px;
        background-repeat: no-repeat; 
    }
    
    #contacts .ui-icon { 
        background-image: url(http://glyphish.com/images/demo.png);
        background-position: -9px -540px;
        background-repeat: no-repeat; 
    }
    
    #keypad .ui-icon { 
        background-image: url(http://glyphish.com/images/demo.png);
        background-position: -9px -783px;
        background-repeat: no-repeat; 
    }
    
    #voicemail .ui-icon { 
        background-image: url(http://glyphish.com/images/demo.png);
        background-position: -394px -733px;
        background-repeat: no-repeat; 
    }
    

    0 讨论(0)
提交回复
热议问题