常用css属性查询表
前端  /  管理员 发布于 7年前   204
1.CSS背景属性(background)
| 属性 | 描述 |
| background | 在一个声明中设置所有的背景属性 |
| background-attachment | 设置背景图像是否固定或者随着页面的其余部分滚动 |
| background-color | 设置元素的背景颜色 |
| background-image | 设置元素的背景图像 |
| background-position | 设置背景图像的开始位置 |
| background-repeat | 设置是否及如何重复背景图像 |
2.CSS边框属性(border与outline)
| 属性 | 描述 |
| 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)