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

高洛峰
Release: 2016-12-24 16:01:02
Original
2244 people have browsed it

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!


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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!