Solution: the cell width is exceeded when the text in the cell is displayed.
During development, the data displayed in table cells often exceeds the cell width. This is generally the case.
1. The ellipsis (...) is displayed in the excess part (...)
Solution: set text-overflow: ellipsis in css;
Text-overflow:
2. line feed display
Solution: Set white-space: normal in css;
White-space :( 1) normal: default. The blank space is ignored by the browser.
(2) pre: line breaks and other blank characters will be protected
(3) nowrap: forces all texts to be displayed in the same row until the text ends or the br object is encountered.
Sample Code:
<Html>
<Head>
<Style type = "text/css">
P
{
White-space: normal/pre/nowrap;
}
</Style>
</Head>
<Body>
<P>
This is some text.
This is some text.
This is some text.
This is some text.
This is some text.
This is some text.
This is some text.
This is some text.
This is some text.
This is some text.
This is some text.
This is some text.
</P>
</Body>
</Html>
Run: (1)
(2)
(3)
I hope you can give me some comments.