1、font-size:字号大小
相对长度单位:em(相当于当前对象内文本的字体尺寸)、px(像素)
绝对长度单位(使用比较少):in(英寸)、cm(厘米)、mm(毫米)、pt(点)
2、font-family:字体
中文要加英文状态下的引号,英文字体中包含空格、#、$必须加引号。
3、font-weight:字体加粗
normal(正常)、bold(粗体)、bolder(特粗体)、lighter(细体)、numer(大小)
4、font-style:字体倾斜
normal(正常)italic(斜体)oblique(倾斜的字体)
5、font:综合设置字体样式(重点)
选择器{font:font-style font-weight font-size(必写)/line-height font-family(必写)}顺序不能乱调
例子:h1{font : 400 25px “宋体”;}
或者h1{font : 400 25px “宋体”;}
6、line-style:none :取消li前的小点。