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

22 lines
569 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 Weight Property
localeTitle: 字体重量属性
---
## 字体重量属性
使用`font-weight`属性可以设置更高或更低的`font-weight` 。可用于`font-weight`的值是`normal` `bold` `lighter` `bolder`和numeric值。
```css
font-weight: lighter;
font-weight: bolder;
font-weight: bold;
font-weight: light;
font-weight: 100;
font-weight: 900;
```
较粗和粗的值可增加字体和光线的重量,减轻重量。
#### 更多信息
[MDN文档](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)