CSS text-justifyคุณสมบัติ
ตัวอย่าง
ตั้งค่าวิธีการให้เหตุผลเป็น "ระหว่างคำ" เมื่อตั้งค่าการจัดแนวข้อความเป็น "จัดชิดขอบ":
div
{
text-align: justify;
text-justify: inter-word;
}
ความหมายและการใช้งาน
คุณสมบัติtext-justify
ระบุวิธีการจัดข้อความให้ชิดขอบเมื่อตั้งค่าการจัดแนวข้อความเป็น "จัดชิดขอบ"
ค่าเริ่มต้น: | รถยนต์ |
---|---|
รับการถ่ายทอด: | ใช่ |
เคลื่อนไหวได้: | ไม่. อ่านเกี่ยวกับแอนิเมชั่น |
รุ่น: | CSS3 |
ไวยากรณ์ JavaScript: | วัตถุ .style.textJustify="inter-word" |
รองรับเบราว์เซอร์
ตัวเลขในตารางระบุเบราว์เซอร์รุ่นแรกที่สนับสนุนคุณสมบัติอย่างสมบูรณ์
Property | |||||
---|---|---|---|---|---|
text-justify | Yes* | 11.0 | 55.0 | 10.0.3 | Yes* |
*คุณลักษณะนี้อยู่เบื้องหลังการตั้งค่าเปิดใช้งานคุณลักษณะแพลตฟอร์มเว็บแบบทดลอง (จำเป็นต้องตั้งค่าเป็นเปิดใช้งาน) หากต้องการเปลี่ยนการตั้งค่าใน Chrome: พิมพ์ "chrome://flags" ในเบราว์เซอร์ Chrome หากต้องการเปลี่ยนการตั้งค่าใน Opera: พิมพ์ "flags" ในเบราว์เซอร์ Opera
ไวยากรณ์ CSS
text-justify: auto|inter-word|inter-character|none|initial|inherit;
มูลค่าทรัพย์สิน
Value | Description | Play it |
---|---|---|
auto | The browser determines the justification algorithm | |
inter-word | Increases/Decreases the space between words | |
inter-character | Increases/Decreases the space between characters | |
none | Disables justification methods | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |