css引入方式
1.1 内嵌式:css写在style标签通常写在head标签中
1.2外链式:css写在一个单独的文件用link引入
1.3行内式:css写在标签的style属性中
css基础选择器
2.1标签选择器 标签名{css属性名:属性值;}
2.1类选择器: .类名{css属性名:属性值;}
2.2id选择器: #id属性值{css属性名:属性值;}
2.3通配符选择器: *{css属性名:属性值;}
字体
3.1字体大小 font-size
3.2字体粗细 font-weight normal 正常(400) bold 加粗(700)
3.3字体样式 font-style normal 正常 italic 倾斜
3.4字体系列 font-family sans-serif :无衬线字体 serif:衬线字体
3.5字体连写 font:字体样式 字体粗细 字体大小 字体系列
font:style weight size family;