1、字体属性
1.字体:font-family
2.字体大小:font-size
3.字体粗细:font-weight:
4.字体风格:font-style:normal/italic
5.小型的大写字母:font-variant:small-caps
复合属性:
font:font-style font-variant font-weight font-size font-family
2、文本格式
1.文本颜色
2.文本的水平对齐方式
text-align
3.文本线条修饰
text-decoration:none/underline/overline/line-through/blink
4.行高
注意:如果行高的高度高文本本身的高度,那么文本在这段区域中会垂直居中显示
属性:line-height
取值:与所在的容器设置相同的高度
5.首行文本缩进
属性:text-indent
取值:缩进的距离
6.文本阴影
属性:text-shadow: h-shadow
v-shadow
blur color
7.溢出
1.处理空白
white-space:normal/nowarp
2.文本溢出
text-overflow:clip/ellipsis
要和overflow:hidden联用
3.换行
1.长单词:word-wrap:normal/break-word
2.文本换行:word-break:normal/break-all/keep-all
2.table
3.浮动
float:left/right
clear:left/right/both