คุณสมบัติโหมดการเขียน CSS
ตัวอย่าง
ระบุว่าจะวางบรรทัดข้อความในแนวนอนหรือแนวตั้ง:
p.test1 {
writing-mode: horizontal-tb;
}
p.test2 {
writing-mode: vertical-rl;
}
span.test2 {
writing-mode:
vertical-rl;
}
ความหมายและการใช้งาน
คุณสมบัติwriting-mode
ระบุว่าจะวางบรรทัดข้อความในแนวนอนหรือแนวตั้ง
ค่าเริ่มต้น: | แนวนอน-tb |
---|---|
รับการถ่ายทอด: | ใช่ |
เคลื่อนไหวได้: | ไม่. อ่านเกี่ยวกับแอนิเมชั่น |
รุ่น: | CSS3 |
ไวยากรณ์ JavaScript: | วัตถุ .style.writingMode="vertical-rl" |
รองรับเบราว์เซอร์
ตัวเลขในตารางระบุเบราว์เซอร์รุ่นแรกที่สนับสนุนคุณสมบัติอย่างสมบูรณ์
Property | |||||
---|---|---|---|---|---|
writing-mode | 48.0 | 12.0 | 41.0 | 11.0 | 35.0 |
ไวยากรณ์ CSS
writing-mode: horizontal-tb|vertical-rl|vertical-lr;
มูลค่าทรัพย์สิน
Value | Description |
---|---|
horizontal-tb | Let the content flow horizontally from left to right, vertically from top to bottom |
vertical-rl | Let the content flow vertically from top to bottom, horizontally from right to left |
vertical-lr | Let the content flow vertically from top to bottom, horizontally from left to right |
หน้าที่เกี่ยวข้อง
กวดวิชา CSS: CSS Text Effects