خاصية CSS font-variant-caps
مثال
تعيين فقرة إلى خط أحرف صغيرة:
p.normal {font-variant-caps: normal;}
p.small {font-variant-caps:
small-caps;}
p.allsmall {font-variant-caps: all-small-caps;}
p.petite
{font-variant-caps: petite-caps;}
p.allpetite {font-variant-caps:
all-petite-caps;}
p.unicase {font-variant-caps: unicase;}
p.titling
{font-variant-caps: titling-caps;}
التعريف والاستخدام
تتحكم الخاصية في استخدام الحروف font-variant-caps
الرسومية البديلة للأحرف الكبيرة.
القيمة الافتراضية: | عادي |
---|---|
وارث: | نعم |
متحرك: | رقم. اقرأ عن animatable |
الإصدار: | CSS3 |
بناء جملة JavaScript: | الكائن .style.fontVariantCaps = "أحرف صغيرة صغيرة" |
دعم المتصفح
تحدد الأرقام الواردة في الجدول إصدار المتصفح الأول الذي يدعم الخاصية بالكامل.
Property | |||||
---|---|---|---|---|---|
font-variant-caps | 52.0 | 79.0 | 34.0 | Not supported | 39.0 |
بنية CSS
font-variant-caps: normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps|initial|inherit|unset;
قيم الملكية
Value | Description |
---|---|
normal | Deactivates the use of alternate glyphs |
small-caps | Displays small capitals |
all-small-caps | Displays small capitals for both upper and lowercase letters |
petite-caps | Displays petite capitals |
all-petite-caps | Displays petite capitals for both upper and lowercase letters |
unicase | Displays a mix of small capitals for uppercase letters with normal lowercase letters |
titling-caps | Displays titling capitals |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
unset |
الصفحات ذات الصلة
برنامج CSS التعليمي: CSS Font
مرجع CSS: خاصية الخط
مرجع HTML DOM: خاصية fontVariant