URCloud

/ 0评 / 0/ 最后更新:2022-02-15
文本溢出加省略号

单行文本溢出

     p{
      width: 100%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

多行文本溢出

    p{
      width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp:3;
      -webkit-box-orient:vertical;
    }
0

Leave a Reply

Your email address will not be published.