| Class | Styles |
|---|---|
| .fst-italic | font-style: italic; |
| .fst-normal | font-style: normal; |
字体样式
使用这些工具类快速更改文本的 font-style。font-style 工具类缩写为 .fst-*。
Italic text.
Text with normal font style
<p class="fst-italic">Italic text.</p>
<p class="fst-normal">Text with normal font style</p>CSS
Sass 工具类 API
字体样式工具类在我们的工具类 API 中声明,位于 scss/_utilities.scss。了解如何使用工具类 API。
"font-style": (
property: font-style,
class: fst,
values: italic normal
),