https://www.dropbox.com/s/mfrmk8imwssqvu2/Screenshot%202015-08-20%2021.19.53.png?dl=0
我想达到此链接中给出的结果。这是一个'选择'下拉列表。我怎样才能做到这一点 ? 我已经搜索过了,但找不到任何解决方案。
答案 0 :(得分:1)
包含引导程序库
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<div class="dropdown">
<button id="dLabel" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown trigger
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabel">
// your content
</ul>
</div>