背景
| 属性 | 描述 |
|---|---|
| background | 简写属性,将所有属性按本表以下顺序设置在同一个声明中。 |
| background-color | 元素的背景颜色。 |
| background-image | 把图像设置为背景。 |
| background-repeat | 设置背景图像是否及如何重复。 |
| bachground-attachment | 背景图像是否固定或者随着页面的其余部分滚动。 |
| background-position | 背景图像的起始位置。 |
文本
| 属性 | 描述 |
|---|---|
| color | 设置文本颜色 |
| direction | 设置文本方向。 |
| letter-spacing | 设置字符间距 |
| line-height | 设置行高 |
| text-align | 元素中文本的对齐方式 |
| text-decoration | 向文本添加修饰 |
| text-indent | 缩进元素中文本的首行 |
| text-shadow | 设置文本阴影 |
| text-transform | 控制元素中的字母 |
| unicode-bidi | 设置或返回文本是否被重写 |
| vertical-align | 设置元素的垂直对齐 |
| white-space | 设置元素中空白的处理方式 |
| word-spacing | 设置字间距 |
定位(position)
| 值 | 描述 |
|---|---|
| static | 没有定位,遵循正常的文档流对象。 |
| relative | 相对其正常位置。 |
| absolute | 相对于最近的已定位父元素。 |
| fixed | 相对于浏览器窗口是固定位置。 |