文本颜色:color
文本装饰:text-decoration
值:默认值:none,没有装饰效果
下划线:underline
上划线:overline
删除线:line-through
文本对齐方式:text-align
值:左对齐:left
右对齐:right
居中对齐:center
大小写:text-transform
值:不转换:none
首字母大写:capitalize
全部大写:uppercase
全部小写:lowercase
首行缩进:text-indent
字母之间的间距:letter-spacing
字(单词)之间的间距:word-spacing
行高:line-height
背景相关的属性
背景颜色:background-color
背景图片:background-image 需要设置图片的url地址
图片重复:background-repeat
在水平和垂直两个方向复制:repeat
不复制:no-repeat
水平方向复制:repeat-x
垂直方向复制:repeat-y
位置:background-position
也可以将这一组属性值封装到一个属性background中,书写顺序:
背景颜色 背景图片 重复方式 位置
Background : gray url(img/pig.jpg.) no-repeat right top;