Home  >  Article  >  Web Front-end  >  HTML tips: td, the content in the div tag does not wrap

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

高洛峰
高洛峰Original
2016-12-24 16:01:022204browse

In some page development, in addition to your own operations, the situations that cause line breaks generally include:

The content length in the Ex 1.td tag is too long, causing line breaks;

The content in the Ex 2.div tag (or other tags) contains text and pictures cause line breaks;

Solution:

For the first example, use the tag to wrap all the line-wrapped content, which can solve the problem;

For the second example, use the CSS style white-space: nowrap; can prevent pictures and content from wrapping. (After testing by myself, it is also possible to use the tag).


More HTML tips: td, content in div tags does not wrap, related articles Please pay attention to PHP Chinese website!


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