font-size 字体大小 font-size属性值:单位可以是px,pt,em等 12pt=16px 1em=16px 浏览器默认是16px,设计图常用字号是12px
16px=12pt=1em 默认大小为16px 字体样式【微软雅黑】
color 颜色 属性值:颜色的英文/16进制【#FFFFFF】/rgb【255, 255, 255】
font-family 字体样式 属性值:楷体
font-weight 加粗 font-weight:bolder(更粗的)/bold(加粗)/normal(常规)
font-weight:100-900; 100-500不加粗 600-900加粗
font-style 斜体 font-style:italic(斜体字)/oblique(倾斜的文字)/normal(常规显示);
text-align 文本水平对齐
text-align:left; 水平靠左
text-align:right;水平靠右
text-align:center;水平居中
text-align:justify;水平2端对齐,但是只对多行起作用。
line-height 行高 line-height的数据=height的数据,可以实现单行文本垂直居中
text-decoration 文本修饰 text-decoration:none没有下划线
text-decoration:underline有下划线
text-decoration:overline上划线
text-decoration:line-through删除线
text-indent 首行缩进 text-indent可以取负值 text-indent属性支队第一行起作用
letter-spacing: 字间距 控制文本和文本之间的距离 中文常用
word-spacing: 字间距 控制文本和文本之间的距离 英文常用
background-repeat:no-repeat不平铺;
repeat平铺
repeat-x横向平铺
repeat-y纵向平铺
background-repeat:no-repeat ;
background-position: left top;
background-position: left;
background-position: -5em;
background-position: 100px;
background-attachment: fixed; 图片的固定
background-attachment: fixed;
background-color: hsla(0,0%,100%,0.8); 图片的透明度 范围为0-1
background-size: 100% 100%;
none 没有
circle 空心圆
disc 实心圆
square 实心正方形
list-style-image:url("img/icon.jpg")
list-style-position:inside[在列表里面]/outside[在列表外面 默认]