| 属性 | 描述 | 
|---|---|
| color | 设置文本颜色 | 
| direction | 设置文本方向。 | 
| letter-spacing | 设置字符间距 | 
| line-height | 设置行高 | 
| text-align | 对齐元素中的文本 | 
| text-decoration | 向文本添加修饰 | 
| text-indent | 缩进元素中文本的首行 | 
| text-shadow | 设置文本阴影 | 
| text-transform | 控制元素中的字母 | 
| unicode-bidi | 设置或返回文本是否被重写 | 
| vertical-align | 设置元素的垂直对齐 | 
| white-space | 设置元素中空白的处理方式 | 
| word-spacing | 设置字间距 | 
| Property | 描述 | 
|---|---|
| font | 在一个声明中设置所有的字体属性 | 
| font-family | 指定文本的字体系列 | 
| font-size | 指定文本的字体大小 | 
| font-style | 指定文本的字体样式 | 
| font-variant | 以小型大写字体或者正常字体显示文本。 | 
| font-weight | 指定字体的粗细。 | 
链接的样式,可以用任何CSS属性(如颜色,字体,背景等)。
特别的链接,可以有不同的样式,这取决于他们是什么状态。
这四个链接状态是:
| 属性 | 描述 | 
|---|---|
| border | 简写属性,用于把针对四个边的属性设置在一个声明。 | 
| border-style | 用于设置元素所有边框的样式,或者单独地为各边设置边框样式。 | 
| border-width | 简写属性,用于为元素的所有边框设置宽度,或者单独地为各边边框设置宽度。 | 
| border-color | 简写属性,设置元素的所有边框中可见部分的颜色,或为 4 个边分别设置颜色。 | 
| border-bottom | 简写属性,用于把下边框的所有属性设置到一个声明中。 | 
| border-bottom-color | 设置元素的下边框的颜色。 | 
| border-bottom-style | 设置元素的下边框的样式。 | 
| border-bottom-width | 设置元素的下边框的宽度。 | 
| border-left | 简写属性,用于把左边框的所有属性设置到一个声明中。 | 
| border-left-color | 设置元素的左边框的颜色。 | 
| border-left-style | 设置元素的左边框的样式。 | 
| border-left-width | 设置元素的左边框的宽度。 | 
| border-right | 简写属性,用于把右边框的所有属性设置到一个声明中。 | 
| border-right-color | 设置元素的右边框的颜色。 | 
| border-right-style | 设置元素的右边框的样式。 | 
| border-right-width | 设置元素的右边框的宽度。 | 
| border-top | 简写属性,用于把上边框的所有属性设置到一个声明中。 | 
| border-top-color | 设置元素的上边框的颜色。 | 
| border-top-style | 设置元素的上边框的样式。 | 
| border-top-width | 设置元素的上边框的宽度。 | 
"CSS" 列中的数字表示哪个CSS版本定义了该属性(CSS1 或者CSS2)。
| 属性 | 说明 | 值 | CSS | 
|---|---|---|---|
| outline | 在一个声明中设置所有的外边框属性 | outline-color outline-style outline-width inherit | 2 | 
| outline-color | 设置外边框的颜色 | color-name hex-number rgb-number invert inherit | 2 | 
| outline-style | 设置外边框的样式 | none dotted dashed solid double groove ridge inset outset inherit | 2 | 
| outline-width | 设置外边框的宽度 | thin medium thick length inherit | 2 | 
原文:https://www.cnblogs.com/yxs1530/p/10162399.html