文本字体属性:为了减少系统间的差异,99年明确16px/ppi为标准字体大小,1em默认=16px
em根据父元素值确定。eg font-size:12px;line-height:2em(24px)
绝对大小关键字
xx-small =9px
。。。。medium=16px
字体类型:中文默认为宋体或新宋体;英文默认Arial
文本颜色 : gbb ggba
eg #fafafa #f00 rgba(0,0,0,0.2)
字体加粗
字体倾斜
文本的大小写:
缩进
text-indent:value
letter-spacing:value
word-spacing:value
文本修饰
text-decoration:none/underline/overline/line-through/blink
list-style-type:disc circle square none
list-style-position:outside inside
border-style: solid dashed dotted double none
background-attachment:scoll(滚动)/fixed(固定)
css浮动属性
float left right none
浮动:浮动的边框可以向左或向右移动,直到它的外边碰到包含框或另外一个浮动框的边框为止,浮动框是脱离了普通的文档流的。
清楚浮动的方法
1.父级添加 overflow:hidden
2.加高度。
3.clear:both
4万能清除浮动法