📜  css - ocultar texto - 任何代码示例

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

代码示例1
.giveMeEllipsis {
   overflow: hidden;
   text-overflow: ellipsis;
   display: -webkit-box;
   -webkit-box-orient: vertical;
   -webkit-line-clamp: N; /* number of lines to show */
   line-height: X;        /* fallback */
   max-height: X*N;       /* fallback */
}