单行
Overflow :隐藏;
文本溢出: ellipsis;
white-space:nowrap
多行记得设置高度
Overflow :隐藏;
文本溢出: ellipsis;
显示:-WebKit-box;
-webkit-line-clamp: 2;
- WebKit-box-orient :垂直;
http://www.Sina.com/http://www.Sina.com /
不好用
这两个人是插件
Clamp.js
jQuery.dotdotdot
单行
Overflow :隐藏;
文本溢出: ellipsis;
white-space:nowrap
多行记得设置高度
Overflow :隐藏;
文本溢出: ellipsis;
显示:-WebKit-box;
-webkit-line-clamp: 2;
- WebKit-box-orient :垂直;
http://www.Sina.com/http://www.Sina.com /
不好用
这两个人是插件
Clamp.js
jQuery.dotdotdot
版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。