Home > Web Front-end > CSS Tutorial > td nowrap css nowrap usage instructions and precautions_experience exchange

td nowrap css nowrap usage instructions and precautions_experience exchange

WBOY
Release: 2016-05-16 12:06:28
Original
1695 people have browsed it

Ask a question:


The effect is the same whether I set nowrap or not. The table automatically stretches with the text, why?

→Answer the question:
The behavior of the noWrap attribute of the TD element is related to the width attribute of the TD element.

◆If the TD width is not set, the noWrap attribute is effective.
◆If the TD width is set, the noWrap attribute has no effect.

Sample file, click the run button to see the effect:

[Ctrl A Select all Note:If you need to introduce external Js, you need to refresh it to execute]
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