1. CSS字体属性

CSS字体属性


 CSS Fonts(字体属性用于定义字体系列、大小、粗细、和字样式(如斜体)

1.1 font-family字体系列

font-family:"傲软雅黑";
font-family:Arial,"Microsoft Yahei";
最常见的几个字体:font-family: "Microsoft Yahei", tahoma,aria,"Hiragino Sans GB";

1.2 font-size字体大小

font-size:16px;//系统默认大小

1.3 font- weight字体粗细

默认: font-weight: normal; === font-weight: 400;
加粗: font-weight: bold; === font-weight: 700;

1.4 font-style文字样式

默认: font-style: normal;
斜体: font-style: italic;

1.5 复合属性

//字体大小,和字体必须写font:字体样式 字体粗细 字体大小/行高 字体系列
font: font-style font-weight font-size/line-height font-family

 

★紧急联系
邮箱:zhif6688@163.com
V  X: Zhif999999
原文地址:https://www.cnblogs.com/zhif97/p/14317642.html