During development, the display data in table cells often exceeds the width of the cell. This is usually the case with this situation.
1, out-of-section display ellipsis (...)
Workaround: Set text-overflow:ellipsis in CSS;
Text-overflow:
2. Line break display
Workaround: Set white-space:normal in CSS;
White-space: (1) Normal: Default. The blank will be ignored by the browser.
(2) Pre: line breaks and other whitespace characters will be protected
(3) NoWrap: Forces all text to be displayed in the same line until the text ends or encounters a BR object
Example code:
<style type= "Text/css" >
P
{
White-space:normal/pre/nowrap;
}
</style>
<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>
Run: (1)
(2)
(3)
I hope you will give us some advice.
Workaround for cell text display over cell width