3
我有表,在最後一欄我已經下拉:不起作用引導V4下拉反應
<td>
<div className="dropdown">
<button className="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown
</button>
<div className="dropdown-menu" aria-labelledby="dropdownMenu2">
<button className="dropdown-item" type="button">Action</button>
<button className="dropdown-item" type="button">Another action</button>
<button className="dropdown-item" type="button">Something else here</button>
</div>
</div>
</td>
但是當我點擊滴下來它不會打開,可與唱段和數據問題屬性?
您是否檢查過以確保'bootstrap.js'已加載? – MTCoster
當你點擊按鈕打開下拉菜單時,將'.open'類追加到'.dropdown-menu',並在再次單擊時將其刪除。確保包含bootstrap.css和bootstrap.js。 –
通過JS Bin創建簡化的測試用例並通過鏈接回報將有助於解決您的問題 – Chris