多行文本处理溢出省略的方法
2017-10-10 09:16
267 查看
<div class="example">单行文本溢出的处理方法,单行文本溢出的处理方法</div> <div class="example-one">多行文本溢出的处理方法,多行文本溢出的处理方法多行文本溢出的处理方法,多行文本溢出的处理方法,多行文本溢出的处理方法,</div>
单行文本溢出的处理方法
<style> .example{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } </style>
多行文本溢出的处理方法
<style> .example-one{ display:-webkit-box !important; overflow:hidden; text-overflow:ellipsis; -webkit-box-orient:vertical; /*文本方向为横向*/ -webkit-line-clamp:3; /*显示文本的行数*/} </style>
相关文章推荐
- 多行文本溢出显示省略号(...)的方法整理
- 多行文本溢出显示省略号(...)的方法
- 如何处理单行文本和多行文本溢出
- 多行文本溢出显示省略号 多行文本折行省略并存
- 多行文本加省略号的处理方法
- html文本溢出显示省略字符的两种常用解决方法
- 【CSS/JS学习】如何实现单行/多行文本溢出的省略(...)--老司机绕过坑道的正确姿势
- 溢出文本自动带省略号省略(text-overflow: ellipsis;)的方法
- 多行文本溢出显示省略号(...)的方法
- jq实现多行文本溢出出现省略号的方法
- 四种方法实现单、多行文本溢出,显示省略号(…)的效果
- 多行文本溢出显示省略号(...)的方法
- 【CSS/JS学习】如何实现单行/多行文本溢出的省略(...)--老司机绕过坑道的正确姿势
- 微信小程序text文本溢出单行/多行省略
- 单行/多行文本溢出处理
- 12.css单行和多行文本的溢出处理
- 关于单行文字,多行文字溢出隐藏时 css jq处理方法 兼容各个浏览器
- CSS实现多行文本溢出省略效果和单行文本溢出省略效果
- 4种方法实现单行、多行——文本溢出显示省略号
- 移动端多行文本溢出省略