1、字体 font
font-size
别忘了跟单位 px像素单位
font-style
跟斜体有关系 em i
属性值
font-style:normal; 正常,不倾斜
font-style: italic; 斜
font-weight
字体加粗 strong b
属性值
font-weight: 400; 不加粗 normal
font-weight: 700; 加粗 bold
font-family
字体类别
**综合写法**
font: 加粗 斜体 字号 字体类型;
注意
字体类型要放最后
综合写法 字号和字体一定不能省略
2、文本 text
color
十六进制的颜色必须 # 开头
单词 red green blue
十进制 rgb(红,绿,蓝) 0---255
line-height
行高 需要带单位
也可以用百分比 line-height: 150% 行高是文字大小的1.5倍
text-align
让盒子里面文本水平居中对齐
text-indent
首行缩进
text-indent:2em; 首行缩进2个字
text-decroation
文本的修饰
overline
上划线
line-through
中划线
underline
添加下划线
none
取消下划线
3、背景属性
background 背景复合属性
background-image 背景图
background-color 背景颜色
background-size 背景大小
background-repeat 背景是否平铺
no-repeat 不平铺
repeat 平铺(默认)
repeat-X
repeat-Y
background-position 背景定位
background-attachment 背景是否随滚轮滚动
4、 标题显示模式
display:inline 行
display:block 块
display:inline-block 行内块