本文主要是介绍Bootstrap 手风琴菜单,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
<!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 手风琴菜单的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!