设置是否使用 CSS 覆盖文本以支持多语言

cssweb developmentfront end technology更新于 2024/9/13 12:28:17

使用 unicode-bdi 属性设置是否使用 CSS 覆盖文本以支持多语言

示例

<!DOCTYPE html>
<html>
   <head>
      <style>
         p.demo1 {
            direction: rtl;
            unicode-bidi: bidi-override;
         }
         p.demo2 {
            direction: rtl;
            unicode-bidi: isolate;
         }
      </style>
   </head>
   <body>
      <h1>The unicode-bidi Property</h1>
      <p>This is demo text.</p>
      <p class = "demo1">This is demo text</p>
      <p class = "demo2">This is demo text</p>
   </body>
</html>

相关文章


有用资源