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
ทรัพย์สินควบคุมการใช้ร่ายมนตร์อื่นสำหรับตัวพิมพ์ใหญ่
ค่าเริ่มต้น: | ปกติ |
---|---|
รับการถ่ายทอด: | ใช่ |
เคลื่อนไหวได้: | ไม่. อ่านเกี่ยวกับแอนิเมชั่น |
รุ่น: | CSS3 |
ไวยากรณ์ JavaScript: | วัตถุ .style.fontVariantCaps="small-caps" |
รองรับเบราว์เซอร์
ตัวเลขในตารางระบุเบราว์เซอร์รุ่นแรกที่สนับสนุนคุณสมบัติอย่างสมบูรณ์
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
การอ้างอิง CSS: คุณสมบัติแบบอักษร
การอ้างอิง HTML DOM: คุณสมบัติ fontVariant