• bootstrap 手风琴效果


    <!DOCTYPE HTML>

    <html>
    <head>
    <meta charset="utf-8">
    <title>按钮插件--按钮状态切换</title>
    <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
    <style>
    body{padding:10px;margin:10px}
    </style>
    </head>
    <body>
    <div class="panel-group" id="accordion">
    <div class="panel panel-default">
    <div class="panel-heading">
    <h4 class="panel-title"><a href="#aa1" data-toggle="collapse" data-parent="#accordion">标题一</a></h4>
    </div>
    <div class="panel-collapse collapse in" id="aa1">
    <div class="panel-body">标题一对应的内容</div>
    </div>
    </div>
    <div class="panel panel-default">
    <div class="panel-heading">
    <h4 class="panel-title"><a href="#aa2" data-toggle="collapse" data-parent="#accordion" >标题二</a></h4>
    </div>
    <div class="panel-collapse collapse" id="aa2">
    <div class="panel-body">标题二对应的内容</div>
    </div>
    </div>
    <div class="panel panel-default">
    <div class="panel-heading">
    <h4 class="panel-title"><a href="#aa3" data-toggle="collapse" data-parent="#accordion">标题三</a></h4>
    </div>
    <div class="panel-collapse collapse" id="aa3">
    <div class="panel-body">标题三对应的内容</div>
    </div>
    </div>
    </div>
    <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
    <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>

    </body>
    </html>

     

  • 相关阅读:
    排序算法:冒泡排序
    排序算法: 插入排序
    排序算法:折半插入排序
    排序算法:快速排序
    浅谈C/C++回调函数(Callback)& 函数指针
    仿函数
    回溯法:求和
    动态规划:数字和为sum的方法数
    字典序
    剑指offer15 二进制中1的个数
  • 原文地址:https://www.cnblogs.com/fengluzheweb/p/4695306.html
Copyright © 2020-2023  润新知