Thuộc tính CSS text-justify
Thí dụ
Đặt phương thức căn chỉnh thành "liên từ" khi căn chỉnh văn bản được đặt thành "căn chỉnh":
div
{
text-align: justify;
text-justify: inter-word;
}
Định nghĩa và Cách sử dụng
Thuộc text-justify
tính chỉ định phương pháp căn chỉnh văn bản khi căn chỉnh văn bản được đặt thành "căn chỉnh".
Giá trị mặc định: | Tự động |
---|---|
Thừa hưởng: | Đúng |
Hoạt hình: | không. Đọc về hoạt hình |
Phiên bản: | CSS3 |
Cú pháp JavaScript: | object .style.textJustify = "inter-word" |
Hỗ trợ trình duyệt
Các số trong bảng chỉ định phiên bản trình duyệt đầu tiên hỗ trợ đầy đủ thuộc tính.
Property | |||||
---|---|---|---|---|---|
text-justify | Yes* | 11.0 | 55.0 | 10.0.3 | Yes* |
* Tính năng này nằm sau tùy chọn Bật tính năng nền tảng web thử nghiệm (cần được đặt thành Đã bật). Để thay đổi tùy chọn trong Chrome: nhập "chrome: // flags" vào trình duyệt Chrome. Để thay đổi tùy chọn trong Opera: nhập "flags" vào trình duyệt Opera.
Cú pháp CSS
text-justify: auto|inter-word|inter-character|none|initial|inherit;
Giá trị tài sản
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 |