阿拉伯语翻译中的CSS换行问题

时间:2014-12-22 11:14:23

标签: html css arabic

我正在翻译阿拉伯文页面。我有一条这样的线(英语等价物)。

             here listed are member team your to assigned training the All 

每当线条长度增加时,线条就会被包裹,线条现在看起来像这样。

                             here listed are member team your to assigned
                                                         training the All

当然不利于此。我想要的是如下

                             member team your to assigned training the All
                                                           here listed are 

有没有CSS属性可以这样做!如果你们中的任何一个遇到过这样的问题,请告诉我正确的方向。

编辑

HTML

<p>here listed are member team your to assigned training the All</p>

CSS

p {
  text-align: right;
}

1 个答案:

答案 0 :(得分:0)

您可以添加

direction='rtl'

属性几乎可以实现任何HTML元素。

对于阿拉伯语网页,您可能会发现body元素上的HTML dir属性也很有用:

<body dir='rtl'>
    ...
</body>

请参阅:https://developer.mozilla.org/en-US/docs/Web/CSS/direction

and body dir =&#39; rtl&#39;:在https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes找到dir属性