Before always try to use but always out of effect, today write code and use this, found that they used the wrong place, (⊙﹏⊙) b .....
First on the correct code
1 <!DOCTYPE HTML>2 <HTML>3 <Head>4 <MetaCharSet= "Utf-8">5 <title>Text-overflow:ellipsis;</title>6 </Head>7 <style>8 . Text-overflow{9 Display:Inline-block;Ten White-space:nowrap; One Overflow:Hidden; A Text-overflow:ellipsis; - } - a{ the width:110px; - } - </style> - <Body> + <ahref="#"class= "Text-overflow">Test text can be intercepted</a><BR> - <bclass= "Text-overflow"style= "width:100px;">Test text can be intercepted</b> + </Body> A </HTML>
Today is the overflow text in the News list with "..." instead, the first time found that they have CSS style written to the UL tag, and later found to be written into the Li tag can not be used, the last change to a tag on it, the original role is the internal a tag, really sloppy
The HTML styles to write are:
<ul><li><a> I am content </a></li></ul>
Overflow text with "..." instead