CSS controls the overflow of LI line characters, which is replaced by ellipsis. cssli
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "Content-Type" mrc = "text/html; charset = UTF-8"/>
<Title> CSS controls the overflow of a line of characters in place of ellipsis </title>
<Style>
* {Margin: 0; padding: 0 ;}
A {text-decoration: none; color: #000 ;}
A: hover {text-decoration: none; color: #000 ;}
Ul {width: 280px; height: 126px; margin: 38px auto; padding: 12px 6px 12px 22px; border: 1px solid # CCC; background: # EEE ;}
Li {margin: 12px 0 ;}
Li a {display: block; width: 168px; overflow: hidden;/* cannot be written at the end */white-space: nowrap;-o-text-overflow: ellipsis; text-overflow: ellipsis ;}
/* Firefox only */
Li: not (p) {clear: both ;}
Li: not (p) a {max-width: 172px; float: left ;}
Li: not (p): after {mrc: "..."; float: left; width: 25px; padding-left: 5px; color: #000 ;}
</Style>
</Head>
<Body>
<Ul>
<Li> <a href = "/soft/3149.shtml" target = "_ blank"> show content 1, show content 1, show content 1, show content 1 </a> </li> <a href = "/soft/3148.shtml" target = "_ blank"> show content 2, show content 2, show content 2,
Show content 2 </a> </li> <a href = "/soft/3147.shtml" target = "_ blank"> show content 3, show content 3, show content 3, show content 3 </a> </li> <a href = "/soft/3144.shtml" target = "_ blank"> show content 4,
Show content 4, show content 4, show content 4, show content 4 </a> </li>
</Ul>
<Div> <A href = "http://www.999jiujiu.com/"> http://www.999jiujiu.com/</A> </div>
</Body>
</Html>