gpt4 book ai didi

jquery - Bootstrap Accordion 错误 : collapse switch back to visible mode

转载 作者:行者123 更新时间:2023-11-28 09:22:48 24 4
gpt4 key购买 nike

您可以测试这个非常简单的折叠 Bootstrap :

http://www.getshoutbox.com/test.php

如果您尝试向后折叠面板,它会再次显示:这是最简单的折叠示例:

<!DOCTYPE HTML>
<html>
<head>
<title>GAQ getSHoutBox</title>

<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.js"></script>

<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />
</head>
<body>


<div class="panel-group" id="accordion">
<div class="panel panel-info">
<div class="panel-heading">
<div class="panel-title">
<a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#first">First</a>
</div>
</div><!--Here heading has to close and collapse has to start-->
<div class="panel-collapse collapse" id="first">
<div class="panel-body">
<img src="images/lebowski-1.jpg" alt="1" />
</div>
</div>
</div>
<div class="panel panel-info">
<div class="panel-heading">
<div class="panel-title">
<a class="collapsed" href="#secound" data-toggle="collapse" data-parent="#accordion">
Secound</a>
</div>
</div>
<div class="panel-collapse collapse" id="secound">
<div class="panel-body">
<img src="images/lebowski-2.jpg" alt="2" />
</div>
</div>
</div>
<div class="panel panel-info">
<div class="panel-heading">
<div class="panel-title">
<a class="collapsed" href="#third" data-toggle="collapse" data-parent="#accordion">Third</a>
</div>
</div>
<div class="panel-collapse collapse" id="third">
<div class="panel-body">
<img src="images/lebowski-3.jpg" alt="3" />
</div>
</div>
</div>
</div>
</body>
</html>

怎么了???

最佳答案

试试这个

<!DOCTYPE HTML>
<html>
<head>
<title>GAQ getSHoutBox</title>

<link href="css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="css/bootstrap-theme.css" rel="stylesheet" type="text/css">
<link href="css/bootstrap-theme.min.css" rel="stylesheet" type="text/css">
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.js"></script>

</head>
<body>

<div class="panel-group" id="accordion">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
Collapsible Accordion 1
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in">
<div class="panel-body">
<img src="images/lebowski-1.jpg" alt="1" />
</div>
</div>
</div>


<div class="panel panel-success">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseFour">
Collapsible Accordion 2
</a>
</h4>
</div>
<div id="collapseFour" class="panel-collapse collapse">
<div class="panel-body">
<img src="images/lebowski-2.jpg" alt="2" />
</div>
</div>
</div>


<div class="panel panel-warning">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseFour">
Collapsible Accordion 3
</a>
</h4>
</div>
<div id="collapseFour" class="panel-collapse collapse">
<div class="panel-body">
<img src="images/lebowski-3.jpg" alt="3" />
</div>
</div>
</div>

</div>
</body>
</html>

关于jquery - Bootstrap Accordion 错误 : collapse switch back to visible mode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26020006/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com