Responsive dropdown navbar with angular-ui bootstrap (done in the correct angular kind of way)

后端 未结 4 1722
感动是毒
感动是毒 2020-12-04 05:24

I\'ve created a JSFiddle with a dropdown navbar using angular-ui-boostrap\'s module \"ui.bootstrap.dropdownToggle\": http://jsfiddle.net/mhu23/2pmz5/

<
4条回答
  •  无人及你
    2020-12-04 06:15

    My solotion for responsive/dropdown navbar with angular-ui bootstrap (when update to angular 1.5 and, ui-bootrap 1.2.1)
    index.html

         ...    
        
    
    
    
    
    
    

    app.css

    /* show the collapse when navbar toggle is checked */
    #navbar-toggle-cbox:checked ~ .collapse {
        display: block;
    }
    
    /* the checkbox used only internally; don't display it */
    #navbar-toggle-cbox {
      display:none
    }
    

提交回复
热议问题