好了,废话不多说了,直接给大家贴代码了,具体代码如下所示:<!DOCTYPEhtml><html>&
好了,废话不多说了,直接给大家贴代码了,具体代码如下所示:
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="UTF-8">
<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- 可选的Bootstrap主题文件(一般不用引入) -->
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="js/jquery-1.11.1.min.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="js/bootstrap.min.js"></script>
</head>
<body>
<div style="width: 200px;">
<div class="panel-group" id="accordion2">
<div class="panel-heading">
<strong style="font-size: 30px;">论坛分类</strong>
</div>
<div class="panel panel-default">
<div class="panel-heading" data-toggle="collapse"
data-parent="#accordion2" href="#collapseOne">
<a class="accordion-toggle">Java</a>
</div>
<div id="collapseOne" class="panel-collapse collapse"
style="height: 0px;">
<div class="panel-body">
<ul class="nav nav-pills nav-stacked">
<li><a href="#">Java基础</a></li>
<li><a href="#">Java面向对象</a></li>
<li><a href="#">Java核心API</a></li>
<li><a href="#">JavaEE</a></li>
</ul>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" data-toggle="collapse"
data-parent="#accordion2" href="#collapseTwo">
<a class="accordion-toggle">数据库</a>
</div>
<div id="collapseTwo" class="panel-collapse collapse"
style="height: 0px;">
<div class="panel-body">
<ul class="nav nav-pills nav-stacked">
<li><a href="#">SQL基础</a></li>
<li><a href="#">Oracle</a></li>
<li><a href="#">MySQL</a></li>
</ul>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" data-toggle="collapse"
data-parent="#accordion2" href="#collapseThree">
<a class="accordion-toggle">技术前沿</a>
</div>
<div id="collapseThree" class="panel-collapse in"
style="height: 0px;">
<div class="panel-body">
<ul class="nav nav-pills nav-stacked">
<li><a href="#">NoSQL</a></li>
<li><a href="#">Hadoop</a></li>
<li><a href="#">WebService</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
以上所述是小编给大家介绍的Bootstrap 手风琴菜单的实现代码,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!
bootstrap 手风琴菜单