我一直在使用空格:无包装、文本溢出:省略和溢出:隐藏的CSS属性来创建多行文本的省略截断。然而,当使用flexbox时,这是行不通的。当使用flex时,文本溢出:省略似乎总是将flex项的高度截断为一行。 <p>long multiline text that i would like to truncate<
我需要截断字符,如果用户聚焦于div,它会显示所有字符而不截断。但是我需要用户焦点,div需要显示单行中的所有字符。should worksThis should worksThis should worksThis should worksThis should worksThis should works
CSS