From: http://www.jb51.net/article/3622.htm
Key CSS code: Text-overflow: ellipsis; overflow: hidden; white-space: nowrap; padding: 2px
The following is an instance: Code
<! Doctype HTML public "-// W3C // dtd html 4.0 transitional // en">
<HTML>
<Head>
<Title> new document </title>
<Style>
. CTL {
Table-layout: fixed
}
. Ctl td {text-overflow: ellipsis; overflow: hidden; white-space: nowrap; padding: 2px}
</Style>
</Head>
<Body>
<Table cellspacing = "0" cellpadding = "1" width = "100%" class = "CTL" border = 1>
<Colgroup>
<Col>
<Col width = "60">
</Colgroup>
<Tbody>
<Tr>
<TD> the title of the expanded associate professor's scholar doctor seems to be difficult, but the title of the 16th plane immediately expanded the title of the Associate Professor's scholar doctor to see it as difficult, but the 16th planes immediately </TD>
<TD> (1/1) </TD>
</Tr>
<Tr>
<TD> the title of the expanded associate professor's scholar doctor seems to be difficult, but the title of the 16th plane immediately expanded the title of the Associate Professor's scholar doctor to see it as difficult, but the 16th planes immediately </TD>
<TD> (1/1) </TD>
</Tr>
<Tr>
<TD> the title of the expanded associate professor's scholar doctor seems to be difficult, but the title of the 16th plane immediately expanded the title of the Associate Professor's scholar doctor to see it as difficult, but the 16th planes immediately </TD>
<TD> (1/1) </TD>
</Tr>
<Tr>
<TD> the title of the expanded associate professor's scholar doctor seems to be difficult, but the title of the 16th plane immediately expanded the title of the Associate Professor's scholar doctor to see it as difficult, but the 16th planes immediately </TD>
<TD> (1/1) </TD>
</Tr>
</Tbody>
</Table>
</Body>
</Html>
Example 2: How can I do this in <div> </div> or <li> </LI>? <! Doctype HTML public "-// W3C // dtd html 4.0 transitional // en">
<HTML>
<Head>
<Title> new document </title>
<Style>
. CTL {}{ text-overflow: ellipsis; overflow: hidden; white-space: nowrap; padding: 2px}
</Style>
</Head>
<Body>
<Div class = "CTL" style = "width: 234; Height: 99; Background: cyan; "> the title is expanded. The Scholar-doctor of the Associate Professor sees it as hard but the title is expanded immediately. The Scholar-doctor of the Associate Professor sees it as hard but the title is 16th planes. </div>
<Ul class = "CTL" style = "width: 234; "> <li> the title of the expanded associate professor's scholar doctor seems to be difficult, but the title of the 16th plane immediately expanded the title of the Associate Professor's scholar doctor. It seems like the method is hard, but the 16th planes immediately </LI> <LI> the title of the expanded associate professor's scholar doctor seems to be difficult, but the title of the 16th plane immediately expanded the title of the Associate Professor's scholar doctor saw it as difficult, but the 16th planes immediately </LI> </ul>
</Body>