教学内容     HTML篇 | CSS篇 | VBScript篇 | JavaScript篇 | ASP篇 |

第三节 字体标记

 

发布:刘声田   发布时间:2011-11-20  字体:【

一、字体族科

  语法: font-family: [[<族科名称> | <种类族科>],]* [<族科名称> | <种类族科>]
允许值: <族科名称>
初始值: 由浏览器决定

二、字体风格

  语法: font-style: <值>
允许值: normal | italic | oblique
初始值: normal

三、字体变形

  语法: font-variant: <值>
允许值: normal | small-caps
初始值: normal

四、字体加粗

  语法: font-weight: <值>
允许值: normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900
初始值: normal

五、字体大小

  语法: font-size: <绝对大小> | <相对大小> | <长度> | <百分比>
允许值:
<绝对大小> xx-small | x-small | small | medium | large | x-large | xx-large
<相对大小> larger | smaller
初始值: medium