Home >Web Front-end >CSS Tutorial >HTML tips: td, the content in the div tag does not wrap_Experience exchange
In some page development, in addition to your own operations, the situations that cause line breaks generally include:
The content length in Ex-.td tag is too long, causing line breaks;
Ex 2. The content in the .div tag (or other tags) contains text and images that cause line breaks;
Solution:
For Example 1, use the
For Example 2, use the CSS style white-space: nowrap; to prevent images and content from wrapping. (After my own testing, using the