**font-style**
* 描述:設置對象中的字體樣式。
* 版本:CSS1
* 繼承性:有
**語法**
```
font-style:樣式值;
```
樣式值
normal:默認值,設置文本字體樣式為正常的字體。
italic:設置文本字體樣式為斜體,對于沒有設計斜體的特殊字體,如果要使用斜體外觀將應用 oblique。
oblique:設置文本字體樣式為傾斜的字體,人為的使文字傾斜,而不是去選取字體中的斜體字。
inherit:設置從父元素繼承字體樣式。
**代碼示例**
```
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>font-style</title>
<style>
#container{
font-style: italic;
}
</style>
</head>
<body>
<div id="container">
測試字體
</div>
</body>
</html>
```

- 空白目錄
- CSS3專業名詞
- 復合屬性
- 繼承性
- CSS3背景
- background
- background-color
- background-image
- background-repeat
- background-attachment
- background-position
- background-origin
- background-clip
- background-size
- CSS邊框
- border
- border-width
- border-style
- border-color
- border-top
- border-top-width
- border-top-style
- border-top-color
- border-right
- border-right-width
- border-right-style
- border-right-color
- border-bottom
- border-bottom-width
- border-bottom-style
- border-bottom-color
- border-left
- border-left-width
- border-left-style
- border-left-color
- border-radius
- border-top-left-radius
- border-top-right-radius
- border-bottom-right-radius
- border-bottom-left-radius
- CSS顏色
- color
- opacity
- CSS字體
- font
- font-style
- font-variant
- font-weight
- font-size
- font-family
- font-stretch
- font-size-adjust
- CSS定位
- position
- z-index
- clip