Let TD wrap through CSS

Source: Internet
Author: User

The behavior of the NoWrap property in the TD element is related to the width property of the TD element. If the TD width is not set, the NoWrap property works, and vice versa. We can implement a newline by setting the Word-break:break-all for TD.

The NoWrap property of the TD element in HTML indicates that text wrapping in the cell is blocked. However, it should be noted that the behavior of the nowrap attribute in TD element is related to the width property of TD element. If the TD width is not set, the NoWrap property works, and if TD width is set, the NoWrap property does not work.

let TD wrap through CSS

Ajax applications in the project need to dynamically create element but in the TD content is too long Firefox can automatically change lines, IE6 more stupid! You can set the following TD CSS to achieve

Copy Code code as follows:


<TD style= "Word-break:break-all" >

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.