CSS 글꼴 스타일 속성
예시
세 단락에 대해 서로 다른 글꼴 스타일을 설정합니다.
p.a {
font-style: normal;
}
p.b {
font-style: italic;
}
p.c {
font-style: oblique;
}
정의 및 사용
속성 은 font-style
텍스트의 글꼴 스타일을 지정합니다.
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
font-style | 1.0 | 4.0 | 1.0 | 1.0 | 7.0 |
CSS 구문
font-style: normal|italic|oblique|initial|inherit;
속성 값
Value | Description | Play it |
---|---|---|
normal | The browser displays a normal font style. This is default | |
italic | The browser displays an italic font style | |
oblique | The browser displays an oblique font style | |
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 참조: fontStyle 속성