什么是CSS字体速记属性?

时间:2011-10-30 18:31:39

标签: css

font:100 1.1em/37px Tahoma, Helvetica, Sans-serif;

100是什么意思? font-weight1.1em是什么意思? line-height37pxfont-size

3 个答案:

答案 0 :(得分:5)

这是一个很酷的字体速记备忘单,可以找到here

所以在你的例子中,100是字体权重,1.1em是字体大小,37px是行高。

答案 1 :(得分:1)

你的字体粗细是正确的,但1.1em/37px表示字体大小为1.1 ems,行高为37像素,而不是相反。

W3C CSS2.1 font property reference

另请参阅:What does this CSS font shorthand syntax mean?

答案 2 :(得分:0)

简介。

http://htmlhelp.com/reference/css/font/#font

基本上是设置字体大小,然后是系列。