如何反转 bootstrap 5 中手风琴按钮的内容

How to reverse the accordion-button content in bootstrap 5

我正在用阿拉伯语内容编写一个网站。
问题:accordion-button的内容应该是反的(右边的问题,左边的向下箭头)。 我该如何解决?

<!-- Bootstrap 5.0.x library -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">



<!-- Body -->
<div class="accordion accordion-flush" id="questions">
  <!--Begining of the item-->
  <div class="accordion-item">
    <h2 class="accordion-header" id="flush-headingOne">
      <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#quest_1">
            السؤال الأول
          </button>
    </h2>
    <div id="quest_1" class="accordion-collapse collapse" data-bs-parent="#questions">
      <div class="accordion-body text-end">
        الإجابة على السؤال الأول
      </div>
    </div>
  </div>
  <!--Ending of the item-->
</div>

只需将dir="rtl"(方向:从右到左)添加到按钮即可。如果您想将整个网站更改为“阿拉伯语布局”,您也可以将其直接添加到 <html> 标签中:<html lang="ar" dir="rtl">

<!-- Bootstrap 5.0.x library -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">



<!-- Body -->
<div class="accordion accordion-flush" id="questions">
  <!--Begining of the item-->
  <div class="accordion-item">
    <h2 class="accordion-header" id="flush-headingOne">
      <button dir="rtl" class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#quest_1">
            السؤال الأول
          </button>
    </h2>
    <div id="quest_1" class="accordion-collapse collapse" data-bs-parent="#questions">
      <div class="accordion-body text-end">
        الإجابة على السؤال الأول
      </div>
    </div>
  </div>
  <!--Ending of the item-->
</div>