美文网首页
css文本超出用“...”显示

css文本超出用“...”显示

作者: 初源yang | 来源:发表于2019-08-08 11:04 被阅读0次

    .textbox{

     overflow: hidden;

      text-overflow: ellipsis;

      display: -webkit-box;

      -webkit-box-orient: vertical;

      -webkit-line-clamp: 6;//显示的行数

      line-clamp: 6;

      box-orient: vertical;

    }

    /*一定不要给固定高度*/

    相关文章

      网友评论

          本文标题:css文本超出用“...”显示

          本文链接:https://www.haomeiwen.com/subject/cfwtjctx.html