文本属性:
- text -align——指定文本的对齐方式
- text-decoration——规定文本修饰
- text-transform——控制文本的大小写
- text-indent——文本首行缩进
text -align——指定文本的对齐方式
- left——居左对齐,默认情况下
- right——居右对齐
- center——居中对齐
例:<p>段落段落</p>
p{
text-align: center;
}
text-decoration——规定文本修饰
- underline——下划线
- overline——上划线
- line-through——定义删除线
例:<p>段落段落</p>
p{
text-align: center;
text-decoration: overline;