In a div, the content exceeds the length and the font shrinks.

clipboard.png

as shown in the picture, please refer to

when the content is long, how to make the font shrink adaptively to div

Css
Mar.06,2021

what you want:
reference: http://jquery-textfill.github.

you can write it yourself. Be troublesome. The simple idea is to calculate how many words there are and get the width, and scale font-size

if you exceed the number of words.
Menu