📜  限制段落高度 css 代码示例

📅  最后修改于: 2022-03-11 14:47:55.991000             🧑  作者: Mango

代码示例2
.class{
   word-break: break-word;
   overflow: hidden;
   text-overflow: ellipsis;
   display: -webkit-box;
   line-height: 16px; /* fallback */
   max-height: 32px; /* fallback */
   -webkit-line-clamp: 2; /* number of lines to show */
   -webkit-box-orient: vertical;
}