多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## 所有CSS字体属性 | Property | 描述 | | :-- | :-- | | [font](http://www.php.cn/manual/view/33299.html) | 在一个声明中设置所有的字体属性 | | [font-family](http://www.php.cn/manual/view/33309.html) | 指定文本的字体系列 | | [font-size](http://www.php.cn/manual/view/33307.html) | 指定文本的字体大小 | | [font-style](http://www.php.cn/manual/view/33301.html) | 指定文本的字体样式 | | [font-variant](http://www.php.cn/manual/view/33302.html) | 以小型大写字体或者正常字体显示文本。 | | [font-weight](http://www.php.cn/manual/view/33305.html) | 指定字体的粗细。 | ## 使用百分比和EM组合 在所有浏览器的解决方案中,设置 元素的默认字体大小的是百分比: ``` body {font-size:100%;} h1 {font-size:2.5em;} h2 {font-size:1.875em;} p {font-size:0.875em;} <h1>This is heading 1</h1> <h2>This is heading 2</h2> <p>This is a paragraph.</p> <p>Specifying the font-size in percent and em displays the same size in all  major browsers, and allows all browsers to resize the text!</p> ```