添加所需的类和属性以创建下拉列表。
<div class="@(8)">
<button @(22)
class="btn btn-primary @(15)">
Dropdown Example
<span class="caret"></span></button>
<ul class="@(13)">
<li><a href="#">HTML</a></li>
<li><a href="#">CSS</a></li>
<li><a href="#">JavaScript</a></li>
</ul>
</div>
<div class="dropdown">
<button data-toggle="dropdown"
class="btn btn-primary dropdown-toggle">
Dropdown Example
<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#">HTML</a></li>
<li><a href="#">CSS</a></li>
<li><a href="#">JavaScript</a></li>
</ul>
</div>
<div class="dropdown">
<button data-toggle='dropdown'
class="btn btn-primary dropdown-toggle">
Dropdown Example
<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#">HTML</a></li>
<li><a href="#">CSS</a></li>
<li><a href="#">JavaScript</a></li>
</ul>
</div>
<div class="dropdown">
<button DATA-TOGGLE="dropdown"
class="btn btn-primary dropdown-toggle">
Dropdown Example
<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#">HTML</a></li>
<li><a href="#">CSS</a></li>
<li><a href="#">JavaScript</a></li>
</ul>
</div>
<div class="dropdown">
<button DATA-TOGGLE='dropdown'
class="btn btn-primary dropdown-toggle">
Dropdown Example
<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#">HTML</a></li>
<li><a href="#">CSS</a></li>
<li><a href="#">JavaScript</a></li>
</ul>
</div>