設定文字是否應使用 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 次瀏覽

開始你的 職業生涯

透過完成課程獲得認證

開始使用
廣告
© . All rights reserved.