Home >Web Front-end >CSS Tutorial >HTML tips: td, the content in the div tag does not wrap_Experience exchange

HTML tips: td, the content in the div tag does not wrap_Experience exchange

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 12:03:382760browse

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 tag to wrap all the newline content, which can solve the problem;

For Example 2, use the CSS style white-space: nowrap; to prevent images and content from wrapping. (After my own testing, using the tag can also be used).

Statement:
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