CSS 1.css介绍 css指的是层叠样式表(cascading style sheets) 官方文档:https://www.w3school.com.cn/css/index.asp为什么需要c
2021-10-25 13:37:49
216
一、字体大小:font-size
xx-small、large、单位:px(像素)、em(字体高的整数倍)、%
二、字体集: font-family
1,字体的名字里可以有中文、特殊字符,字体的名字需要用双引号包裹;
2,在一个font-family中可以设定多个字体,并且需要用逗号分隔;
举例:
.ft {
font-family:"微软雅黑", "宋体", Arial;
}
三、字体的粗细:font-weight
normal:400, bold:700
四、字体的斜体:font-style
normal, italic, oblique, 一般使用normal
连写顺序:
1. font:font-style font-weight font-size/line-height font-family
2. 其中有些值是可以省略的,font-style font-weight line-height, font-size和font-family 必须有,否则font不起作用
09
2022-11
09
2022-11
09
2022-11
09
2022-11
09
2022-11
19
2022-10