文本属性
1.字体:
font-size 大小,单位px
color 字体颜色
font-family 字体(可多可1,用","隔开)
font-style:italic 字体倾斜
font-style:normal 正常
font-weight:bold/bolder 字体加粗
font-weight:normal 字体正常
font-weight:数值(100~500正常,600~900加粗),无单位
2.段落:
line-height:normal(正常)/数值(像素px)/数值/百分比,不能有负值【行高,可以使文本垂直居中】
text-align:left/center/right 【文本对齐方式】
text-decoration:none(无)/overline(上方线)/line-through(删除线)/underline(下划线) 【文本修饰】
text-indent:em/px/%百分比【文本缩进,可以有负值】
背景属性
背景属性:对页面元素设置背景样式的CSS属性;
background-color 定义背景色(颜色/十六进制/RGB)
background-image 定义背景图(none/url(" "))
background-repeat 背景重复 (repeat默认平铺/no-repeat不平铺/repeat-x水平平铺/repeat-y垂直平铺)
background-position 背景位置( left/center/right水平位置 + top/center/bottom垂直位置)
border-radius:像素px 圆角
背景的复合属性
background:背景颜色 背景图像 背景位置 背景重复 背景附着;
空格间隔,属性顺序可换,按需可省
列表属性
列表属性:给列表元素设置样式的CSS属性;
list-style-type 列表项目符号类型
属性值:disc(实心)/circle(空心)square(实心方块) /none(隐藏项目符号)
list-style-image 列表项目符号为图片
属性值:none/url(" ")
list-style-position 列表项目符号位置
属性值:outside (默认列表项外)/inside(列表项里)
列表的复合属性
list-style:类型 路径 位置;