Home > Web Front-end > HTML Tutorial > Text wrapping problem in table_html/css_WEB-ITnose

Text wrapping problem in table_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:25:35
Original
1047 people have browsed it

Can the text in the table be changed to new lines whenever you want it to be, even if one cell is not full?


Reply to the discussion (solution)

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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template