Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> CSS

การกำหนดให้ข้อความรองรับหลายภาษาด้วย CSS unicode-bidi


ใช้คุณสมบัติ unicode-bidi เพื่อกำหนดให้ข้อความสามารถรองรับหลายภาษาได้ใน 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>