NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
字体属性是用来设定“文字字形”的外观表现,主要包括: ``` 颜色, 字体名称, 大小, 是否斜体(字体样式), 是否粗体。 color, font-family, font-size, font-style font-weight ``` 常用字体属性如下所示: ![](https://img.kancloud.cn/67/71/6771138452c2ed30ee426c48a7f89645_1271x367.png) ![](https://img.kancloud.cn/56/de/56decdb440aa73ac816f400a0bd1f213_1271x290.png) 演示: 使用一段话,在该段落中,能够表现所有上述属性。 ![](https://img.kancloud.cn/31/0b/310b66dd9aac182e2f30e0109de3545b_736x260.png) font综合属性的语法: ``` font:[ <' font-style '> || <' font-weight '> ]? <' font-size '> [ / <' line-height '> ]? <' font-family '> ]; ```