Wechat page text overflow display ellipsis is invalid

display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;

chrome is normal

clipboard.png


Css
Mar.16,2021

if a single line of text overflows, that's enough

overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;

of course the width should be fixed


resolved
resolve

by referencing shave
  • install

    npm install shave --save
  • introduce

    import shave from 'shave';
  • deal with

    shave('selector', maxheight)

    my implementation

        ...
        import shave from 'shave'
        ...
        updated () {
            shave('.video-desc', 40)    
            shave('.ellipsis', 400)
        },
        ...

haven't you tried this, or not? This is the case with all our projects. For the time being, no problems have been found.
overflow: hidden;
text-overflow: ellipsis;
display:-webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
this is a multi-line support

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b733-2ba11.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b733-2ba11.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?