相关疑难解决方法(0)

如何让 dir="rtl" 与引导程序 4.3.1 一起使用?

我正在使用 bootstrap 4.3.1 创建一个简单的 html/css 页面。在一个段落中,我将使用一些需要以从右到左的格式显示的阿拉伯语文本。

我曾尝试使用direction:rtlin cssdir="rtl"inhtml和in bidi-override。但似乎没有任何效果。我认为它与 bootstrap 4.3.1 有关,但我可能是错的。我无法理解我哪里出错了,非常感谢任何帮助。

这是我的 html

<div class="row justify-content-center">
  <div class="col-sm-6" style="border:1px solid black">
    <div class="row">
      <div class="ayat_box">
        <div class="ayat_ar">
          <p class="ayat_ar_txt">
            ?????? ????? ????? ????????? ??????? ??????????? ??????? ??????? ?????? ???? ????? ?????????? ????????? ?????????? ?????? ???? ?????? ???????? ????????? ?????? ?????? ????? ?????? ?????? ?????? ???????  <span class="ayat_period">?</span>
          </p>
        </div>
        <div class="ayat_en">
          <p class="ayat_en_txt">
some content in ltr
          </p>
        </div>
        <div class="ayat_exp"> …
Run Code Online (Sandbox Code Playgroud)

html css right-to-left bootstrap-4

13
推荐指数
2
解决办法
1万
查看次数

标签 统计

bootstrap-4 ×1

css ×1

html ×1

right-to-left ×1