//多行省略隐藏 .class{ display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; text-overflow: ellipsis; } //内容页可自动编辑时初始化样式 .class{ font-size: 12px; line-height: 2; white-space: normal; word-break: break-all; }
来源:https://www.cnblogs.com/Tmode/p/10942059.html