Adding open/closed icon to Twitter Bootstrap collapsibles (accordions)

后端 未结 19 2451
失恋的感觉
失恋的感觉 2020-12-22 18:23

I\'ve set up this simple version of the Bootstrap accordion:

Simple accordion: http://jsfiddle.net/darrenc/cngPS/

Currently the icon only po

19条回答
  •  伪装坚强ぢ
    2020-12-22 18:54

    Another no-javascript solution that uses the collapse functionality itself:

    /* Prevent block display and transition animation */
    .expand-icon.collapse.in,
    .collapse-icon.collapse.in {
      display: inline; }
    .expand-icon.collapsing {
      display: none; }
    
    /* HTML Toggler with glyphicons */
    
     
      
     
     
         
     
    
    

提交回复
热议问题