freeCodeCamp/guide/chinese/css/properties/font-style-property/index.md

19 lines
859 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Font Style Property
localeTitle: 字体样式属性
---
## 字体样式属性
`font-style`属性允许您更改字体样式,这意味着您可以使字体变为斜体。此属性接受以下值:
* `normal` - 默认值。
* `italic` - 字体通过选择字体系列中分类为斜体的字体来显示斜体。
* `oblique` - 在其字体系列中被分类为倾斜的字体被使用。
`Italic`和`oblique`可能看起来相似。据[MDN](https://developer.mozilla.org/en-US/) _倾斜只是倾斜版的常规脸_
您还可以在提供`oblique`值时指定倾斜度字体的角度。如果未提供角度则默认使用14度。
#### 更多信息:
* [MDN - 字体样式](https://developer.mozilla.org/en-US/docs/Web/CSS/font-style)
* [CSS-Tricks - 字体样式](https://css-tricks.com/almanac/properties/f/font-style/)