Multiline text to fit parent container in React JS

前端 未结 4 2193
情歌与酒
情歌与酒 2021-02-19 19:51

I am using a flexbox layout and am trying to get the text in a specific div to be resized to fit that div.

So for example, if I have code as follows:

&l         


        
4条回答
  •  生来不讨喜
    2021-02-19 20:24

    A really, really, really, really long phrase here that will fit this div, and may wrap onto multiple lines if necessary. In this case it should fill half of the available space as the other div will cover the other half of the space.
    Some other text

提交回复
热议问题