خاصية ضبط النص في CSS
مثال
اضبط طريقة الضبط على "inter-word" عند ضبط محاذاة النص على "justify":
div
{
text-align: justify;
text-justify: inter-word;
}
التعريف والاستخدام
تحدد الخاصية طريقة text-justify
ضبط النص عند ضبط محاذاة النص على "ضبط".
القيمة الافتراضية: | تلقاءي |
---|---|
وارث: | نعم |
متحرك: | رقم. اقرأ عن animatable |
الإصدار: | CSS3 |
بناء جملة JavaScript: | الكائن .style.textJustify = "بين الكلمات" |
دعم المتصفح
تحدد الأرقام الواردة في الجدول إصدار المتصفح الأول الذي يدعم الخاصية بالكامل.
Property | |||||
---|---|---|---|---|---|
text-justify | Yes* | 11.0 | 55.0 | 10.0.3 | Yes* |
* هذه الميزة وراء تفضيل Enable Experimental Web Platform Feature (يلزم تعيينها على Enabled). لتغيير التفضيلات في 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 |