css 的一些样式笔记

  • 两行加省略号
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
word-wrap: break-word;
white-space: normal !important;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;

原文地址:https://www.cnblogs.com/zhangzhaowei/p/11858161.html