单行文本溢出用省略号表示
p{ width:*px; overflow:hidden; white-space:nowrap; text-overflow: ellipsis; }
多行文本溢出
p{ width: *px; overflow: hidden; text-overflow: -o-ellipsis-lastline; text-overflow:ellipsis; display: -webkit-box; -webkit-line-clamp: 2[num]; -webkit-box-orient: vertical; display: -moz-box; -moz-line-clamp:2[num]!important; -moz-box-orient:vertical; }
一段文字两端对齐,最后一行居中
P{ text-align:justify; text-align-last:center; }