1.CSS背景属性(background)

属性

描述

background 在一个声明中设置所有的背景属性
background-attachment 设置背景图像是否固定或者随着页面的其余部分滚动
background-color 设置元素的背景颜色
background-image 设置元素的背景图像
background-position 设置背景图像的开始位置
background-repeat 设置是否及如何重复背景图像

2.CSS边框属性(borderoutline)

属性

描述

border 在一个声明中设置所有的边框属性
border-bottom 在一个声明中设置所有的下边框属性
border-bottom-color 设置下边框的颜色
border-bottom-style 设置下边框的样式
border-bottom-width 设置下边框的宽度
border-color 设置四条边框的颜色
border-left 在一个声明中设置所有的左边框属性
border-left-color 设置左边框的颜色
border-left-style 设置左边框的样式
border-left-width 设置左边框的宽度
border-right 在一个声明中设置所有的右边框属性
border-right-color 设置右边框的颜色
border-right-style 设置右边框的样式
border-right-width 设置右边框的宽度
border-style 设置四条边框的样式
border-top 在一个声明中设置所有的上边框属性
border-top-color 设置上边框的颜色
border-top-style 设置上边框的样式
border-top-width 设置上边框的宽度
border-width 设置四条边框的宽度
outline 在一个声明中设置所有的轮廓属性
outline-color 设置轮廓的颜色
outline-style 设置轮廓的样式
outline-width 设置轮廓的宽度

 

3.CSS文本属性(text)

属性

描述

color 设置文本的颜色
direction 规定文本的方向/书写方向
letter-spacing 设置字符间距
line-height 设置行高
text-align 规定文本的水平对齐方式
text-decoration 规定添加到文本的装饰效果
text-indent 规定文本块首行的缩进
text-shadow 规定添加到文本的阴影效果
text-transform 控制文本的大小写
unicode-bidi 设置文本方向
white-space 规定如何处理元素中的空白
word-spacing 设置单词间距

 

4.CSS字体属性(font)

属性

描述

font 在一个声明中设置所有字体属性
font-family 规定文本的字体系列
font-size 规定文本的字体尺寸
font-size-adjust 为元素规定aspect值
font-stretch 收缩或拉伸当前的字体系列
font-style 规定文本的字体样式
font-variant 设置或检索对象中的文本是否为小型的大写字母
font-weight 规定字体的粗细

 

5.CSS外边距属性(margin)

属性

描述

margin 在一个声明中设置所有的外边距属性
margin-bottom 设置元素的下外边距
margin-left 设置元素的左外边距
margin-right 设置元素的右外边距
margin-top 设置元素的上外边距

 

6.CSS内边距属性(padding)

属性

描述

padding 在一个声明中设置所有的内边距属性
padding-bottom 设置元素的下内边距
padding-left 设置元素的左内边距
padding-right 设置元素的右内边距
padding-top 设置元素的上内边距

 

7.CSS列表属性(list)

属性

描述

list-style 在一个声明中设置所有的列表属性
list-style-image 将图像设置为列表项标记
list-style-position