Jquery 默认情况下,单击第二个手风琴第一个手风琴不会关闭

Jquery 默认情况下,单击第二个手风琴第一个手风琴不会关闭,jquery,twitter-bootstrap,Jquery,Twitter Bootstrap,您好,我正在使用引导手风琴展开和显示文本。手风琴工作正常,但当单击第二个手风琴时,第一个手风琴不会自动关闭。它应该自动关闭。这是我的代码 <div class="accordion" id="myAccordion"> <button type="button" class="servicesecommerce" data-toggle="collapse" data-target="#collapsible-1" data-parent="#m

您好,我正在使用引导手风琴展开和显示文本。手风琴工作正常,但当单击第二个手风琴时,第一个手风琴不会自动关闭。它应该自动关闭。这是我的代码

<div class="accordion" id="myAccordion">
                <button type="button" class="servicesecommerce" data-toggle="collapse" data-target="#collapsible-1" data-parent="#myAccordion">E-Commerce Development</button><br/>
                <div id="collapsible-1"   class="collapse" >
                    <div class="services3">When it comes to e-Commerce websites you need a partner that is focused and experienced in providing companies the best in professional e-Commerce web design solutions. With a team of experts under one roof, Teknotrait goal is to provide you with all of the necessary design, development and marketing services you need to be successful online.</div>                           
                    <div class="services5">We build E-Commerce Shopping Cart Applications, E-Commerce store front & custom e-commerce shopping cart development solutions.</div>
                    <div class="services6">Teknotrait will help you to build a simple, efficient and familiar shopping interface that can include a number of useful security features such as SSL-A Secure Socket Layer, as the first line of defence against online intruders, utilizing a public-and-private key 128-bit encryption system to uniquely identify individuals carrying out transactions on your website.</div>                         
                    <div class="services7">Our e-commerce development includes Dedicated SSL Certificate compliance that assures your visitors that your site is secure and that their personal information will remain private so they can conduct secure Internet transactions with confidence.</div>                 
                </div>

<button type="button" class="servicesmobile" data-toggle="collapse" data-target="#collapsible-3" data-parent="#myAccordion">Mobile App Development</button><br/>                    
                <div id="collapsible-4" class="collapse" >                                                  
                    <div class="services3">Mobile application development refers the process of developing application or software for the mobiles, personal digital assistants and other handheld devices. When it comes to provide mobile application development services to the required clients, we come at the first position. There is no doubt that mobile technology is incredibly gaining popularity in the market and organizations started making presence in this sector</div>                         
                    <div class="services5">Empowering modern day enterprises, we Teknotrait Solution offer custom business & enterprise mobile apps development solutions which provide better potential and makes the business environment more transparent, intelligent, communication and work flow assistant for user. With our innovative and business – driven approach we work as a companion for the entrepreneurs to thrive and achieve much bigger business perspectives.</div>                   
                </div>
            </div>   

电子商务发展
当涉及到电子商务网站时,您需要一个专注于为公司提供最佳专业电子商务网站设计解决方案且经验丰富的合作伙伴。Teknotrait拥有一支由专家组成的团队,其目标是为您提供在线成功所需的所有必要设计、开发和营销服务。 我们构建电子商务购物车应用程序、电子商务商店前台和定制电子商务购物车开发解决方案。 Teknotrait将帮助您构建一个简单、高效且熟悉的购物界面,该界面可包含许多有用的安全功能,如SSL-a安全套接字层,作为抵御在线入侵者的第一道防线,利用公钥和私钥128位加密系统唯一标识在您的网站上进行交易的个人。 我们的电子商务发展包括专门的SSL证书合规性,可确保您的访问者网站安全,他们的个人信息将保持隐私,以便他们能够自信地进行安全的互联网交易。 移动应用程序开发
移动应用程序开发是指为手机、个人数字助理和其他手持设备开发应用程序或软件的过程。在向所需客户提供移动应用程序开发服务方面,我们处于第一位。毫无疑问,移动技术在市场上越来越受欢迎,各组织也开始涉足这一领域 我们Teknotrait解决方案为现代企业提供定制的商业和企业移动应用程序开发解决方案,为用户提供更好的潜力,使商业环境更加透明、智能、通信和工作流助手。凭借我们创新和业务驱动的方法,我们作为企业家的伙伴,实现更大的商业前景。

bootstrap3手风琴示例
.bs示例{
利润率:20px;
}
HTML代表超文本标记语言。HTML是描述网页结构的主要标记语言

Bootstrap是一个功能强大的前端框架,用于更快、更简单的web开发。它是CSS和HTML约定的集合

CSS代表级联样式表。CSS允许您为给定的HTML元素指定各种样式属性,例如颜色、背景、字体等


您的两个示例之间有什么区别吗?还请添加一个解释。第二,不需要回答两个问题。你生气是因为我发表了评论,然后否决了我吗?