字体加粗:font-weight=>值:normal | blod | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900
字体大小:font-size=>值:xx-small | x-small | small | medium | large | x-large | xx-large | smaller | larger | <length> | <percentage>
字体风格:font-style=>值: itatic | oblique | normal | inherit
字体变形:font-variant->值:small-caps | normal | inherit
字体拉伸:font-stretch=>normal | wider | narrower | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded |extra-expanded | ultra-expanded | inherit
字体调整:font-size-adjust=>值:<number> | none | inherit
增加行高,
到目前为止,我们将font处理为就好像它只有5个值,但事实并非如此。还可以使用font设置line-height,尽管line-height是一个文本属性而不是字体属性。这可以作为对font-size值的一个补充,并用一个斜钱(/)与之分隔:
<style type="text/css">
h2{
font:bold italic 20px/1.2 Verdana, Geneva, sans-serif;}
h2{
font:bold italic 200%/1.2 Verdana, Geneva, sans-serif;}
</style>