文字颜色
colorcolor: blue;color:rgb(132, 220, 254);color:rgba(132, 220, 254,0.5);color:#0078d4;color:#0078d48b;rgb和rgba的区别,即加了个透明度的值,3和4同理
文本间距
letter-spacingletter-spacing: 20px;word-spacingword-spacing: 20px;单词间距,以什么来判断是否是单词呢,中文又如何判断呢,实际上是以空格判断是否是一个单词
文本修饰
text-decorationnone: 无装饰线(常用)text-decoration: none;underline:下划线(常用)text-decoration: underline;overline:上划线text-decoration: overline;line-through:删除线text-decoration: line-through;dotted:虚线text-decoration: underline dotted;wavy:波浪线text-decoration: underline wavy ;text-decoration: underline wavy rgb(132, 220, 254);文本缩进
text-indenttext-indent: 40px;文本对齐-水平
text-alignleft:左对齐(默认)text-align: left;right:右对齐text-align: right;center:居中对齐text-align: center;行高
line-heightline-height: 100px;line-height: 15;line-height: 1500%;文本对齐_垂直
vertical-alignbaseline (默认值) :使元素的基线与父元素的基线对齐top:使元素的顶部与其所在行的顶部对齐middle:使元素的中部与父元素的基线加上父元素字母 x 的一半对齐,即居中对齐bottom:使元素的底部与其所在行的底部对齐。温馨提醒:该属性不能控制块级元素