width 宽度 , height高度,
一.背景
background —color 背景色 background—image背景图片
background-repeat背景图的平铺方式 background-position背景图位置
background-attachment设置背景图片是否滚动 background-size背景图的大小 200px 200px
二.字体
font-family字体样式 font-size字体大小
三.对齐方式
font-size水平对齐方式 vertical-align垂直对齐方式,配合行高使用 line-height行高 text-indent缩进 单位像素
margin外边距 上右下左 padding 内边距 上右下左
四.列表方块
list-style none将列表前面的序号去掉 list-style-image可以将前面的序号变为图片
五. position
fixed固定 相对于浏览器边框位置固定 absolute绝对位置 相对于父级元素(浏览器,绝对定位的上级) relative相对位置 相对于自身应该出现的位置
六.位置
top 距离上边距离 right 距离右边距离 bottm 距离下边距离 left距离左边距离
七.流
float-left 向左流 float-right 向右流
z-index分层 值越大越靠上