How to count the width of a line of Chinese characters in a label

know the width and height of a label, the text size is fixed at 20px, and use JS to count the text width of each line.

Mar.24,2021

1. Get DOM
2. Get DOM.innerHTML
3. Get the length of innerHTML (number of words)
4. The number of words * 20px is the width. See if the result is the
5 you want. Fine-tuning.

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