第二个手风琴不会显示

时间:2020-12-28 20:31:54

标签: html css bootstrap-4

我有一个手风琴,我想在它旁边添加另一个手风琴,但由于某种原因它不会显示,我不明白为什么。我把代码放到tryit editor v3.6 online 中,显示正常。我正在使用每个脚本的最新版本,除了 bootstrap 5 beta,我使用的是 4.5。

PS:Stackoverflow 不会让我发帖直到我说更多但我没有更多所以我会添加一些 lorem ipsum:Lorem ipsum dolor sat amet, consectetur adipiscing elit。 Cras auctor augue mauris, ac vehicula lorem dignissim 坐 amet。 Donec consectetur risus a placerat lobortis。 Mauris posuere sapien ac arcu facilisis,non pellentesque diam semper。 Etiam luctus vehicula 格言。 sed pellentesque augue eros, sed venenatis ex scelerisque a。七叶树。

 <div class="container">
  <h1 class="text-center">Frequently Asked Questions</h1>
  <hr>
  <div class="row">
    <div class="col-md-6">
      <div id="accordion">
        <div class="card">
          <div class="card-header">
            <h5 class="mb-0">
              <a href="#collapseOne" data-toggle="collapse" data-parent="#accordion">
                Question One
              </a>
            </h5>
          </div>

          <div id="collapseOne" class="collapse">
            <div class="card-body">
              Lorem, ipsum dolor sit amet consectetur adipisicing elit. Deserunt ea officiis distinctio exercitationem dolor minus placeat
              amet commodi, ab a perspiciatis officia nobis reiciendis numquam totam repudiandae molestias nulla, quod
              voluptatibus modi rerum laboriosam tenetur. Nihil, soluta eaque? Minima, deserunt.
            </div>
          </div>
        </div>

        <div class="card">
          <div class="card-header">
            <h5 class="mb-0">
              <a href="#collapseTwo" data-toggle="collapse" data-parent="#accordion">
                Question Two
              </a>
            </h5>
          </div>

          <div id="collapseTwo" class="collapse">
            <div class="card-body">
              Lorem, ipsum dolor sit amet consectetur adipisicing elit. Deserunt ea officiis distinctio exercitationem dolor minus placeat
              amet commodi, ab a perspiciatis officia nobis reiciendis numquam totam repudiandae molestias nulla, quod
              voluptatibus modi rerum laboriosam tenetur. Nihil, soluta eaque? Minima, deserunt.
            </div>
          </div>
        </div>

        <div class="card">
          <div class="card-header">
            <h5 class="mb-0">
              <a href="#collapseThree" data-toggle="collapse" data-parent="#accordion">
                Question Three
              </a>
            </h5>
          </div>

          <div id="collapseThree" class="collapse">
            <div class="card-body">
              Lorem, ipsum dolor sit amet consectetur adipisicing elit. Deserunt ea officiis distinctio exercitationem dolor minus placeat
              amet commodi, ab a perspiciatis officia nobis reiciendis numquam totam repudiandae molestias nulla, quod
              voluptatibus modi rerum laboriosam tenetur. Nihil, soluta eaque? Minima, deserunt.
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="col-md-6">
      <div id="accordion2">
        <div class="card">
          <div class="card-header">
            <h5 class="mb-0">
              <a href="#collapseFour" data-toggle="collapse" data-parent="#accordion2">
                Question Four
              </a>
            </h5>
          </div>

          <div id="collapseFour" class="collapse">
            <div class="card-body">
              Lorem, ipsum dolor sit amet consectetur adipisicing elit. Deserunt ea officiis distinctio exercitationem dolor minus placeat
              amet commodi, ab a perspiciatis officia nobis reiciendis numquam totam repudiandae molestias nulla, quod
              voluptatibus modi rerum laboriosam tenetur. Nihil, soluta eaque? Minima, deserunt.
            </div>
          </div>
        </div>

        <div class="card">
          <div class="card-header">
            <h5 class="mb-0">
              <a href="#collapseFive" data-toggle="collapse" data-parent="#accordion2">
                Question Five
              </a>
            </h5>
          </div>

          <div id="collapseFive" class="collapse">
            <div class="card-body">
              Lorem, ipsum dolor sit amet consectetur adipisicing elit. Deserunt ea officiis distinctio exercitationem dolor minus placeat
              amet commodi, ab a perspiciatis officia nobis reiciendis numquam totam repudiandae molestias nulla, quod
              voluptatibus modi rerum laboriosam tenetur. Nihil, soluta eaque? Minima, deserunt.
            </div>
          </div>
        </div>

        <div class="card">
          <div class="card-header">
            <h5 class="mb-0">
              <a href="#collapseSix" data-toggle="collapse" data-parent="#accordion2">
                Question Six
              </a>
            </h5>
          </div>

          <div id="collapseSix" class="collapse">
            <div class="card-body">
              Lorem, ipsum dolor sit amet consectetur adipisicing elit. Deserunt ea officiis distinctio exercitationem dolor minus placeat
              amet commodi, ab a perspiciatis officia nobis reiciendis numquam totam repudiandae molestias nulla, quod
              voluptatibus modi rerum laboriosam tenetur. Nihil, soluta eaque? Minima, deserunt.
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

1 个答案:

答案 0 :(得分:1)

我希望这会有所帮助。

我认为问题在于您在 try { var playingMessage = await queue.textChannel.send(`? Started playing: **${song.title}** ${song.url}`); await playingMessage.react("⏭"); await playingMessage.react("⏯"); await playingMessage.react("?"); await playingMessage.react("?"); await playingMessage.react("?"); await playingMessage.react("?"); await playingMessage.react("⏹"); } catch (error) { console.error(error); } 的 ID。 您可以在手风琴“问题四”之前找到它。 我尝试了您的代码并将 ID 从“accordion2”更改为“accordion”。

<div id="accordion2">