簡體   English   中英

帶有Angular 4的Bootstrap V4中的下拉列表

[英]Dropdown in Bootstrap V4 with Angular 4

在使用引導程序V3來實現Dropdown的Angular 4中,我們使用“ Open”類在單擊時顯示下拉菜單。 當我們單擊下拉標題時,請建議在Bootstrap V4中是否有任何類可顯示下拉菜單。

是的,您可以使用這種格式

<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" 
id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-
expanded="false">
Dropdown button
</button>
  <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
    <a class="dropdown-item" href="#">Action</a>
    <a class="dropdown-item" href="#">Another action</a>
    <a class="dropdown-item" href="#">Something else here</a>
  </div>
</div>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM