常用的设置
/* 字体族 */ font-family: Verdana, Geneva, Tahoma, sans-serif; /* 字体尺寸,不要调整字体尺寸像标题 */ font-size: 12px; /*通过像素指定, 好处是固定的*/ font-size: 1em; /*1em的默认大小是16px, 可以通过公式将像素转换为em:像素/16=em*/ font-size: 200%; /*基于父元素的一个百分比*/ font-size: medium; /*默认值*/ font-size: inherit; /*继承父类*/ /* 字体样式 */ font-style: normal; /*默认normal*/ font-style: italic; /*斜体*/ /* 字体粗细 */ font-weight: normal; /*默认normal*/ font-weight: bolder; /*更粗*/ font-weight: bold; /*加粗*/ font-weight: 800; /*数字方式定义粗细, 400相当于normal, 700相当于bold*/