CSS 글꼴 변형 속성
예시
단락을 소문자 글꼴로 설정:
p.small
{
font-variant: small-caps;
}
정의 및 사용
소문자 글꼴에서는 모든 소문자가 대문자로 변환됩니다. 그러나 변환된 대문자는 텍스트의 원래 대문자보다 작은 글꼴 크기로 나타납니다.
이 font-variant
속성은 텍스트를 작은 대문자로 표시할지 여부를 지정합니다.
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
font-variant | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
CSS 구문
font-variant: normal|small-caps|initial|inherit;
속성 값
Value | Description | Play it |
---|---|---|
normal | The browser displays a normal font. This is default | |
small-caps | The browser displays a small-caps font | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
관련 페이지
CSS 튜토리얼: CSS 글꼴
CSS 참조: 글꼴 속성
HTML DOM 참조: fontVariant 속성