Can the text in the table be changed to new lines whenever you want it to be, even if one cell is not full?
How do you know when you want to change? Add
in the line break and try
Where How do you know when you want to change? Try adding
in the line break place
I didn’t make it clear. It’s too troublesome to use the
tag, just like the requirements in my backend form. The data shows "I am a big idiot!" By default, I am a big idiot will display one line without line breaks, but now I want to break a line after I am, can I do it without
?
There must be a line break rule
The table uses table-layout:fixed to force the width of the table, and the inner td and th use word-break:break-all; or word-wrap:break -word;line break.
Add a div tag around the text, specify the width and height automatically, otherwise it will wrap.