In the tab column, there are some 3 words and some 2 words. How can I use js to calculate its total length? do you add each item in a loop?

clipboard.png

Mar.05,2021

just get the width of the external container directly


do not wrap, use flex ,

// box
.box{
    display: flex;
}

you can either get the width of the parent container directly

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-1e46a75-44bd1.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-1e46a75-44bd1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?