字间距word-spcing:
字母间距:letter-spacing:
行高:line-height:
文字对齐:text-align:
文字缩行:text-index:
边距及空格填充:
-
围绕要素的空格填充(padding)
- 围绕空格填充的边框(border)
- 围绕边框的边距(空白-margin)
边框颜色:border-color:
边框样式:border-style:
浮动:float:
清除:clear:
颜色:color:三种表示方法,颜色名,十六进制和RGB 如:B{color:rgb(51,24,0)}其中的三色数字为0到255之间
背景色:background-color:
背景图片:background-image:url(background.gif)
背景重复:background-repeat:no-repeat (repeat-x,repeat-y)
背景固定:background-attachment:
- scroll指背景图象随文字内容一起滚动,即通常所见的方式。
- fixed指文字滚动时,背景图象保持固定
背景定位:background-position:
快捷特性:{background:url() #ccffdd repeat-x}
绝对定位:position:absolute
相对定位:position:relative
可视性:visiblity:
- visible使要素可以被看见
- hidden使要素被隐藏
- inherit指它将继承母体要素的可视性设置。
叠放文字和图像:z-index:该数值越高说明越靠上