当前位置: 首页 > 网络学院 > 网页制作基础教程 > CSS > CSS font-stretch属性
The font-stretch property condenses or expands the current font-family.
font-stretch 属性可缩窄或拉宽当前的font-family
Note: The font-family are condensed or expanded horizontally only.
注意:font-family 只会在水平方向上伸缩
Inherited: Yes
继承性:有
h2 { font-stretch: ultra-condensed } |
值 | 描述 |
---|---|
normal | Sets the scale of condensation or expansion to normal 不应用拉伸变形 |
wider | Sets the scale of expansion to the next expanded value 使用比当前设置的值导致字体宽度更大的值 |
narrower | Sets the scale of condensation to the next condensed value 使用比当前设置的值导致字体宽度更小的值 |
ultra-condensed extra-condensed condensed semi-condensed semi-expanded expanded extra-expanded ultra-expanded | Sets the scale of condensation or expansion of the font-family. "ultra-condensed" is the most condensed (narrowest) value, and "ultra-expanded" is the most expanded (widest) value 设置拉伸和拉宽的程度 |