Properity | Description | Values |
---|---|---|
background | 同时设置一个或者多个背景属性, 各个具体属性的值可以按任意顺序组合 | background-color background-image background-repeat background-attachment background-position |
background-attachment | 设置图片的现实方式,是随着页面滚动还是固定 | scroll fixed |
background-color | 设置背景颜色 | color-rgb color-hex(十六进制) color-name(标准HTML17种颜色关键字) transparent(透明度) rgba(存在浏览器兼容问题) |
background-image | 选择设置为背景的图片 | url none |
background-position | 设置背景图片的位置 | top left(Keyword效果和left top相同) top center(同上) top right(同上) center left(同上) center center(同上) center right(同上) bottom left(同上) bottom center(同上) bottom right(同上) x-% y-%(Percentage) x-pos y-pos(Exactvalue,如px和em) |
background-repeat | 设置背景图片的重复方式 | repeat(平铺) repeat-x repeat-y no-rep |
Property | Description | Possible Vlues |
---|---|---|
color | 设置文字颜色 | keywords rgb 十六进制 |
direction | 设置文字书写方向 | ltr rtr inherit |
letter-spacing | 增大或减小字间距 | normal length |
text-align | 设置文字对齐方式 | left right center justify(齐行) |
text-decoration | 设置文字装饰效果 | none underline overline line-through blink(闪烁) |
text-indent | 设置文本块首行缩进 | length % |
text-shadow | 设置文本阴影 | none color length |
text-transform | 控制文本大小写 | none capitalize uppercase lowercase |
white-space | 规定如何处理元素中的空白 | normal pre nowrap |
word-spacing | 增加或减少文字间的距离 | normal length |