Articles in the list, often encountered the title is too long and truncated problem, generally with server-side program truncated, but also need to consider the Chinese and English character width, generally two English meters for a Chinese width. But these can also be done in CSS, especially in IE, you can also add ellipses.
This is the long Chinese title
english 中文版 english
Look at the usage in table again.
<TD nowrap style= "overflow:hidden;text-overflow:ellipsis;" > This is the long Chinese title
<TD nowrap style= "overflow:hidden;text-overflow:ellipsis;" >english 中文版 english
Description
Overflow what to do when content overflows, the value hidden to hide overflow content. XHTML 1.0 content, ie, Firefox are supported.
Text-overflow If the value is ellipsis to indicate the content overflow with ellipsis, if the value of clip is simply cut. Non-xhtml1.0 content, only IE 6+ support, that is, Firefox will not add ellipses.
Table-layout table layout, not subject to the changes in the content of the large.
NOBR does not wrap, not XHTML 1.0 content, but IE, Firefox are supported.
nowrap table does not wrap, not XHTML 1.0 content, but IE, Firefox are supported.
This article links http://www.cxybl.com/html/wyzz/CSS/20120601/27375.html