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


使用 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>

最近更新:2020-06-25

78 次浏览

开始你的 职业生涯

通过完成课程获得认证

开始使用
广告