**font-variant**
* 描述:设置对象中的文本是否为小型的大写字母。
* 版本:CSS1
* 继承性:有
**语法**
```
font-variant:取值;
```
取值
normal:默认值,正常的字体。
small-caps:小型的大写字母字体。
**代码示例**
```
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>font-variant</title>
<style>
#container .v1{
font-variant: small-caps;
}
#container .v2{
font-variant: normal;
}
</style>
</head>
<body>
<div id="container">
<p class="v1"> HELLO python</p>
<p class="v2"> HELLO python</p>
</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