设定列表样式
list-style-type:none
list-style-type: disc
实心圆
list-style-type: circle
空心圆
list-style-type: square
实心方形
list-style-type: decimal
数字
li{list-style-type:circle;}
一项项设定
ul{list-style-type:none; }
整体设定
background-image:url;
图片路径
background-repeat:repeat-x;
延X轴重复 no-repeat
background-position:0 0;
right bottom
背景图片在上,背景颜色在下
{background: 颜色 图像url 定位 no-repeat;}
-size
-auto
使背景保持原样-percentage
50%填充 Div里的50%宽度来算-cover
整个背景图放大填充整个元素-contain
背景保持自身高度比例贴合至div里
图片采用背景更容易定坐标
background:linear-gradient(position,color1,color2);
颜色渐变
height:30px
; line-height:25px;
文字之间多出5个像素距离