Bootstrap 我怎样才能把课文写对呢?

vbkedwbf  于 2022-12-08  发布在  Bootstrap
关注(0)|答案(1)|浏览(159)

谁能帮我把(question_number)和(quiz_question)放在同一行?

<div class="row justify-content-center">
  <div class="col-md-1 pt-1 text-start"><b>.<?php echo $question_number; ?></b></div>
  <div class="col-md-9">
    <?php echo remove_js(htmlspecialchars_decode($quiz_question['title'])); ?>
  </div>
</div>
oyt4ldly

oyt4ldly1#

请使用 Bootstrap 添加“order”类

<div class="row justify-content-center">
  <div class="col-md-1 pt-1 text-start order-2"><b>.<?php echo $question_number; ?></b></div>
  <div class="col-md-9 order-1">
    <?php echo remove_js(htmlspecialchars_decode($quiz_question['title'])); ?>
  </div>
</div>

相关问题