liingot

Results 2 comments of liingot

单行: overflow: hidden; text-overflow:ellipsis; white-space: nowrap; 多行: display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; //行数 overflow: hidden; 兼容: p{position: relative; line-height: 20px; max-height: 40px;overflow: hidden;} p::after{content: "..."; position: absolute; bottom: 0;...

好的 谢谢 纠正 ------------------ 原始邮件 ------------------ 发件人: "ghost2113"; 发送时间: 2019年8月20日(星期二) 上午9:48 收件人: "Advanced-Frontend/Daily-Interview-Question"; 抄送: "酷酷的滕";"Comment"; 主题: Re: [Advanced-Frontend/Daily-Interview-Question] 第 127 题:如何用 css 或 js 实现多行文本溢出省略效果,考虑兼容性 (#246) // 只适用于多行文本一定会溢出的情况 @mixin multiLineEllipsis($lineHeight:...