Bootstrap 3: how to make head of dropdown link clickable in navbar

前端 未结 15 845
暗喜
暗喜 2020-12-07 09:23

I\'m using the default navbar and a couple of the list items are dropdowns. I\'m not able to click the link that triggers the dropdown. I know that I could just add a duplic

15条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-07 10:02

    Here this the code which slides down the sub menu on hover, and let you redirect to a page if you click on it.

    How: strip out class="dropdown-toggle" data-toggle="dropdown" from a tag, and add css.

    Here is the demo at jsfiddle. For demo, please adjust jsfiddle's splitter to see the dropdown due to Bootstrap CSS. jsfiddle won't let you redirect to a new page.

    
    
    
        
        
        
        
        
    
    
        
    
    
    

提交回复
热议问题