Computer >> Hướng Dẫn Máy Tính >  >> Lập Trình >> CSS

Thuộc tính CSS unicode-bdi


Sử dụng thuộc tính unicode-bdi để đặt xem văn bản có bị ghi đè để hỗ trợ nhiều ngôn ngữ với CSS hay không.

Ví dụ

<!DOCTYPE html> <html>    <head>       <style>          p.demo1 {             direction: rtl;             unicode-bidi: bidi-override;          }          p.demo2 {             direction: rtl;             unicode-bidi: isolate;          }       </style>    </head>    <body>       <h1>Thuộc tính unicode-bdi</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>