1.文本设置:
字体大小:font-size:px/pt/pm;(1em=12pt=16px)
字体颜色:color:red/#ff0/rgb(255,255,255);
字体倾斜:font-style:italic(斜体字)/oblique(倾斜的文字)/normal(正常显示);
加粗:font-weight:bolder(更粗的)/blod(加粗)/lighter(变细)/normal(常规)/500(100-900);
首行缩进:text-indet
文本水平对齐:text-align:left/right/center/justify(只对多行起作用);
文本修饰:text-decoration:none/underline/overline/line-through(删除线);
字间距:letter-spacing/word-spacing
行高:line-height
2.列表设置
定义列表符合样式:list-style-type:disc(实心圆)/circle(空心圆)/square(实心方块)/none(去掉符号);
设置列表图片:list-style-image:url();
设置列表标记位置(在列表外):list-style-position:outside;
设置列表标记位置(在列表内):list-style-position:inside;
简写(去除列表符号):list-style:none;
3.背景设置
背景颜色:background-color:rgba(,,,);最后一个透明度取值范围0-1
背景图片:background-image: url(图片的位置);
背景大小:background-size
背景平铺:background-repeat:no-repeat/repeat/repeat-y/repeat-x;
背景位置:background-position:center center;/background-position:-100px -100px;
背景附着:background-attachment:fixed/scroll;
简写:background:background-color,background-image,background-repeat,background-attachment,background-position,background-size。
【例如:background:#ff0000 url(图片位置) no-repeat fixed center/100% 100%;】(background-size,一定要用/分隔)