Sunday, May 25, 2008

CSS的优先级

ID>CLASS>HTML标签
内联样式表>嵌入样式表>链接样式表

下划线:text-decoration:...
小写字母变大写:text-variant: small-caps
大小写转换:text-transform: uppercase or lowercase
首字母大写转换:text-transform: capitalize

背景颜色为透明:background-color: transparent
背景图像固定or滚动:background-attachment: fixed or scroll

vertical-align: sub(下标),super(上标),top(与顶端对齐),middle(居中),bottom(与底端对齐)
text-align:left,right,center,justify
text-indent:文本首行缩进值
white-space: normal,pre,nowrap(文本在遇到br时才换行)

visibility:inherit(继承外部的属性),visible,hidden
display: block,inline,list-item,none(block类似于div,inline类似于span)
clip:定义绝对定位的显示区域:clip:rect(top,right,bottom,left)

list-style-type: disc, circle, square,decimal,lower-roman,upper-roman,lower-alpha,upper-alpha,none
list-style-image:
list-style-position:inside,outside

cursor:(光标形状) hand,crosshair,text,wait,default,help,e-resize,ne-resize,n-resize,nw-resize,w-resize,sw-resize(西南箭头),s-resize,se-resize,auto

No comments: