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 |
자바스크립트 구문: | 개체 .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 글꼴
CSS 참조: 글꼴 속성
HTML DOM 참조: fontVariant 속성