我有一个Laravel 7站点与Vue和引导,我有一个页面与jquery手风琴菜单。当您单击一个可扩展的
发布于 2021-09-13 23:08:55
看起来你的点击事件触发了一个"fadeOut“类被应用到你的html标记中,而不是针对于手风琴div。
屏幕截图
以下是从引导5.0文档中可以看到的手风琴html的样子。
<div class="accordion-item">
<h2 class="accordion-header" id="headingOne">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
Accordion Item #1
</button>
</h2>
<div id="collapseOne" class="accordion-collapse collapse show" aria-labelledby="headingOne" data-bs-parent="#accordionExample">
<div class="accordion-body">
<strong>This is the first item's accordion body.</strong> It is shown by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the <code>.accordion-body</code>, though the transition does limit overflow.
</div>
</div>
</div>
</div>```https://stackoverflow.com/questions/69169874
复制相似问题