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" >