总结一下常用的文字属性,从w3school上摘抄
font-size:
取值:
<absolute-size>,绝对大小值font-size: xx-small; font-size: x-small; font-size: small; font-size: medium; font-size: large; font-size: x-large; font-size: xx-large;
<relative-size>,相对大小值font-size: larger; font-size: smaller;
<length>,长度值font-size: 12px; font-size: 0.8em;
<percentage>,百分比值font-size: 80%;
font-size: inherit;
font-weight:
取值:100~900
- 400 = normal
- 700 = bold
text-align: left right center justify inherit
text-decoration: none underline overline line-through blink inherit
text-indent: 文本块中首行文本的缩进
取值: length(12px..) 12% inherit
line-height: 行高
| 值 | 描述 |
|---|---|
| normal | 默认。设置合理的行间距。 |
| number | 设置数字,此数字会与当前的字体尺寸相乘来设置行间距。 |
| length | 设置固定的行间距。 |
| % | 基于当前字体尺寸的百分比行间距。 |
| inherit | 规定应该从父元素继承 line-height 属性的值。 |
color: 文字颜色
207




被折叠的 条评论
为什么被折叠?



