- width:200px;/*设置宽度*/
- white-space:nowrap;/*设置不折行*/
- text-overflow:ellipsis;/*这就是省略号喽*/
- -o-text-overflow:ellipsis;/*兼容opera*/
- overflow: hidden;/*设置超过的隐藏*/
- //该片段来自于http://www.codesnippet.cn/detail/190420132887.html
来源: http://www.codesnippet.cn/detail/190420132887.html