CSS 中 direction 属性的使用

javascriptweb developmentfront end scripts

direction 属性用于设置文本方向。可能的值是 ltr 或 rtl。

示例

您可以尝试运行以下代码以使用 CSS 设置文本方向:

<html>
   <head>
   </head>
   <body>
      <p style = "direction:rtl;">
        此文本将从右到左呈现
      </p>
   </body>
</html>

相关文章