text-decoration(设置文本修饰)
可选值:
none 无
underline 下划线
line-through 删除线
overline 上划线
white-space(设置网页如何处理空白)
可选值:
normal 正常
nowrap 不换行
pre 保留空白
text-overflow
text-overflow确定如何向用户发出未显示的溢出内容信号。它可以被剪切,显示一个省略号或显示一个自定义字符串。
示例:
.box1{
width:200px;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;//溢出设为省略号
} `这几个属性缺一不可`
text-indent(文本缩进)
常用来隐藏logo中的文字
text-indent:-9999px;