Today, I encountered a text line break in td text, and found that the text is: white-space: nowrap, that is, force text not to wrap. By the way, I checked the text line feed attribute word-wrap, which is summarized as follows: the default value of white-space is norm.
Today, I encountered a text line break in td text, and found that the text is: white-space: nowrap, that is, force text not to wrap. By the way, I checked the text line feed attribute word-wrap, which is summarized as follows:
The default value of white-space is normal and the line feed is automatically generated.
Word-break: break-all and word-wrap: break-word indicate forced line breaks. If the former is too long, it is automatically truncated. Otherwise, the entire English word will wrap!
However, I usually use the following:
Word-wrap: break-word; overflow: hidden;
There is no problem in IE. In FF, long strings of English will be overwritten.
Method for forcing line feed of td. th in table:
Php point-to-point (www.phpddt.com) original tutorial |
Php point-to-point (www.phpddt.com) original tutorial |