目录
CSS文本属性
颜色color
div{
color:red;
}
p{
color:green;
}
对齐文本text-align
div{
text-align:center;//居中对齐
}
div{
text-align:left;//默认,左对齐
}
div{
text-align:right;//右对齐
}
装饰文本text-decoration
div{
text-decoration:underline;//下划线
}
div{
text-decoration:none;//默认,无装饰线
}
div{
text-decoration:overline;//上划线
}
div{
text-decoration:line-through;//删除线
}
文本缩进text-indent
文本第一行的缩进
div{
text-indent:10px;//缩进10像素
}
div{
text-indent:2em;//缩进两个字
}
行间距line-height
包括文字上间距,文本高度,下间距