<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!--移动设备优先--> <title>bootstrap</title> <!-- 最新版本的 Bootstrap 核心 CSS 文件 --> <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <!-- 可选的 Bootstrap 主题文件(一般不用引入) --> <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"> <script src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script> <!-- 最新的 Bootstrap 核心 JavaScript 文件 --> <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> <script language="JavaScript"> </script> </head> <body> <div class="container"> <button type="button" class="btn btn-default" data-toggle="collapse" data-target="#shows">折叠</button> <div id="shows" class="collapse in"> <div class="well"> 显示的内容 </div> </div> </div> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!--移动设备优先--> <title>bootstrap</title> <!-- 最新版本的 Bootstrap 核心 CSS 文件 --> <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <!-- 可选的 Bootstrap 主题文件(一般不用引入) --> <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"> <script src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script> <!-- 最新的 Bootstrap 核心 JavaScript 文件 --> <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> <script language="JavaScript"> </script> </head> <body> <div class="container"> <div class="panel-group"> <!--一个功能 --> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a href="#" data-toggle="collapse" data-target="#channel_demo1">栏目管理1</a> </h4> </div> <div class=" collapse panel-collapse" id="channel_demo1"> <div class="panel-body"> <ul> <li><a href="#">增加栏目</a></li> <li><a href="#">增加栏目</a></li> <li><a href="#">增加栏目</a></li> </ul> </div> </div> </div> <!--一个功能 --> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a href="#" data-toggle="collapse" data-target="#channel_demo2">栏目管理2</a> </h4> </div> <div class=" collapse panel-collapse" id="channel_demo2"> <div class="panel-body"> <ul> <li><a href="#">增加栏目</a></li> <li><a href="#">增加栏目</a></li> <li><a href="#">增加栏目</a></li> </ul> </div> </div> </div> <!--一个功能 --> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a href="#" data-toggle="collapse" data-target="#channel_demo3">栏目管理3</a> </h4> </div> <div class="collapse panel-collapse in" id="channel_demo3"> <div class="panel-body"> <ul> <li><a href="#">增加栏目</a></li> <li><a href="#">增加栏目</a></li> <li><a href="#">增加栏目</a></li> </ul> </div> </div> </div> </div> </div> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!--移动设备优先--> <title>bootstrap</title> <!-- 最新版本的 Bootstrap 核心 CSS 文件 --> <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <!-- 可选的 Bootstrap 主题文件(一般不用引入) --> <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"> <script src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script> <!-- 最新的 Bootstrap 核心 JavaScript 文件 --> <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> <script language="JavaScript"> $(function(){ $('#channel_demo2').on('show.bs.collapse', function () { $("#tashow").html("栏目2展开了。。。"); }); }); </script> </head> <body> <div class="container"> <div class="panel-group" id="panelcontainer"> <!--一个功能 --> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a href="#" data-toggle="collapse" data-target="#channel_demo1" data-parent="#panelcontainer">栏目管理1</a> </h4> </div> <div class=" collapse panel-collapse" id="channel_demo1"> <div class="panel-body"> <ul> <li><a href="#">增加栏目</a></li> <li><a href="#">增加栏目</a></li> <li><a href="#">增加栏目</a></li> </ul> </div> </div> </div> <!--一个功能 --> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a href="#" data-toggle="collapse" data-target="#channel_demo2" id="chanel2">栏目管理2</a> </h4> </div> <div class=" collapse panel-collapse" id="channel_demo2"> <div class="panel-body"> <ul> <li><a href="#">增加栏目</a></li> <li><a href="#">增加栏目</a></li> <li><a href="#">增加栏目</a></li> </ul> </div> </div> </div> <!--一个功能 --> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a href="#" data-toggle="collapse" data-target="#channel_demo3">栏目管理3</a> </h4> </div> <div class="collapse panel-collapse in" id="channel_demo3"> <div class="panel-body"> <ul> <li><a href="#">增加栏目</a></li> <li><a href="#">增加栏目</a></li> <li><a href="#">增加栏目</a></li> </ul> </div> </div> </div> </div> <div id="tashow">栏目2信息</div> </div> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!--移动设备优先--> <title>bootstrap</title> <!-- 最新版本的 Bootstrap 核心 CSS 文件 --> <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <!-- 可选的 Bootstrap 主题文件(一般不用引入) --> <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"> <script src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script> <!-- 最新的 Bootstrap 核心 JavaScript 文件 --> <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> <script language="JavaScript"> </script> </head> <body> <div class="container"> <div class="panel-group"> <!--一个功能 --> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a href="#" data-toggle="collapse" data-target="#channel_demo1">栏目管理1</a> </h4> </div> <div class=" collapse panel-collapse" id="channel_demo1"> <ul class="list-group"> <li class="list-group-item"><span class="glyphicon glyphicon-envelope"></span> <a href="#">增加栏目</a></li> <li class="list-group-item"><a href="#">增加栏目</a></li> <li class="list-group-item"><a href="#">增加栏目</a></li> </ul> <div class="panel-footer">页脚</div> </div> </div> <!--一个功能 --> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a href="#" data-toggle="collapse" data-target="#channel_demo1">栏目管理1</a> </h4> </div> <div class=" collapse panel-collapse" id="channel_demo2"> <ul class="list-group"> <li class="list-group-item"><span class="glyphicon glyphicon-envelope"></span> <a href="#">增加栏目</a></li> <li class="list-group-item"><a href="#">增加栏目</a></li> <li class="list-group-item"><a href="#">增加栏目</a></li> </ul> </div> </div> </div> </div> </body> </html>