1·行外样式
引用外部资源的标签:img a link
优先级:行内样式1000>id100>类选择器10>标签1
文本与表格上下左右的距离:padding-top/bottom/left/right:数字px
2·文本样式
font-weight/size/family/style 字体粗细(strong b)/大小/系列(字体)/样式(em i)
color:颜色 opacity:透明度
line-height:字体行高 当其等于height容器高度时文本垂直居中
text-align:left/center/right/justify 文本左(默认)/居中/右/两端对齐
letter-spacing: 字符间距
text-decoration:underline/overline/line-throth 文本下/上/中划线
text-decoration-color 划线颜色
text-decoration-style:solid/dottod/double/wavy/dashed 文本修饰线样式为实/点状/双线条/波浪/虚线
text-indent 文本缩进
超出文本用“...”代替需要3步:
white-space:nowrap 不换行
overflow:hidden 超出部分影藏
text-overflow:ellipsis 被隐藏的用...代替
text-shadow:2px 2px 2px yellow
其四个值分别为 水平方向的偏移 垂直方向的偏移 阴影的模糊距离 阴影的颜色
webkit-text-stroke:1px blue 其两个值为 文本描边的宽度 文本描边的颜色