Some of the problems of position changing lines?

recently wrote something to compare the text, and then considered the problem of line wrapping, that is,



{item.lenContent}

{item.content}


ant-list-item

have you thought about using table, at first, and then you still use the list, that comes with ant design? or is there a better way to solve it?

Apr.16,2021

div absolutely positions the text. You should use


< div style= {{position:'relative',width: '100%'}} >
< label style= {{position:'absolute',width: '100%'}} > {item.content} < / label >
< label style= {{position:'relative',visibility: 'hidden',width:' 100%}} > {item.lenContent} < / label >
< / div >
I have done it. The judgment and data have been modified, but thank you for your answer

Menu