background
background-color:背景颜色
background-repeat:是否平铺
background-image:背景图片
background: gray(背景色) url(XXX/xxx.png) (背景图片) no-repeat(平铺方式)
省略也可以
border
border-width: 边框宽度
border-style:边框样式
border-color:边框颜色
border:1px(宽度) solid(样式) white(颜色,默认是黑色,可省略,其他不可省略)
font
font-style: 样式
font-weight:权重
font-family: 种类
font-size:字体大小
font-height: 行高
font: italic(样式) bold(权重) 20px(大小)/35px(行高) arial(默认字体),"微软雅黑"(备用字体),"宋体"(备用字体)
margin
margin-top
margin-right
margin-bottom
margin-left
magin: 20px(上) 30px(右) 40px(下) 50px(左)
参数个数:
1:上下左右
2:上下,左右
3:上,左右,下
4:上,右,下,左
padding
padding-top
padding-right
padding-bottom
padding-left
padding: 20px(上) 30px(右) 40px(下) 50px(左)
参数个数:
1:上下左右
2:上下,左右
3:上,左右,下
4:上,右,下,左
颜色
color:white
color:rgb(100, 100, 100)
color:#604024