generic truncation of text (for inline and block):
. Text-overflow{Display:Block;/*inline objects need to be added*/width:31em;/*how to ask Hovertree.com*/Word-break:Keep-all;/*No Line break*/White-space:nowrap;/*No Line break*/Overflow:Hidden;/*Hide content beyond width when content is out of bounds*/Text-overflow:ellipsis;/*show ellipsis (...) when text inside an object overflows; use with Overflow:hidden; */}
For the definition of a table literal overflow:
Show ellipsis for table out of range
1 Table{2 width:30em;3 Table-layout:fixed;/*only if the layout algorithm that defines the table is fixed, the following TD definition will work. */4}5 /*6 How to ask7 hovertree.com8 */9 TD{Ten width:100%; One Word-break:Keep-all;/*No Line break*/ A White-space:nowrap;/*No Line break*/ - Overflow:Hidden;/*Hide content beyond width when content is out of bounds*/ - Text-overflow:ellipsis;/*show ellipsis (...) when text inside an object overflows; use with Overflow:hidden; */ the}
It is important to note that this CSS style only works on a single line of text, and if you want to use it on multiple lines, only the first line will work. This writing only IE will have "...",
Other browser text is hidden when it exceeds the specified width.
Special effects: http://www.cnblogs.com/roucheng/p/texiao.html
CSS controls text beyond the specified width display ellipses and text without wrapping