zoukankan      html  css  js  c++  java
  • xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

    css & multi line words & ellipsis

    bug

    .news-card-content-title {
         100%;
        height: 0.8rem;
        line-height: 0.4rem;
        display: block;
        overflow: hidden;
        /* white-space: nowrap; */
        text-overflow: ellipsis;
        max- calc(4.8rem);
    }
    
    

    bug

    
    .news-card-content-title {
         100%;
        height: 0.8rem;
        line-height: 0.4rem;
        display: block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        max- calc(4.8rem);
    }
    

    wanted

    
    
    

    solution

    css text overflow ellipsis multi-line

    https://codepen.io/xgqfrms/pen/qeZpEd

    
    .news-card-content-title {
         100%;
        height: 0.8rem;
        line-height: 0.4rem;
        display: block;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        max- calc(4.8rem);
        overflow: hidden;
        text-overflow: ellipsis;
        /* white-space: nowrap; */
    }
    
    

    Flag Counter

    ©xgqfrms 2012-2020

    www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


  • 相关阅读:
    lists 函数整理
    orddict 练习
    github 的使用
    wxListCtrl 例子 二
    Erlang eunit
    Erlang 中 Tuple 使用 以及 List 模块意外
    Erlang Json
    模块和包
    Mysql作为zabbix数据库ibdata1文件太高解决
    用户管理和数据库安全
  • 原文地址:https://www.cnblogs.com/xgqfrms/p/11239091.html
Copyright © 2011-2022 走看看