In the table layout is often encountered because the table content changes caused by the layout confusion, this time we may have to stabilize the layout of the cell width to write dead, but we set the width but found beyond the width will automatically become larger, using CSS to define the elements of the Overflow:hidden; properties are not possible; the last solution to find is as follows:
table{ table-layout:fixed;/* only the layout algorithm that defines the table is fixed, and the following TD definition will work. */}td{ width:100%; word-break:keep-all;/* do not wrap */ white-space:nowrap;/* do not wrap */ overflow:hidden;/* content beyond the width to hide the contents of the outside part of the * * text-overflow:ellipsis;/* display ellipsis (...) when text inside an object overflows; use with Overflow:hidden; */}
If you're worried about hiding the full cell content, it is recommended that you add the Title property value above the cell to the full contents of the cell so that you can show it all as long as the mouse is over.
Resolves content in an HTML table that is not forced to wrap and is out of width auto-hide and display ellipses