css实现文字自动截断…
先上图:

浏览地址:http://www.5key.net/ex/6-21.htm
css代码
div.test{
width:200px;
height:100px;
border:1px solid red;
border-top:4px solid red;
padding:10px;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
}
最多评论文章
This entry was posted
on 星期三, 07月 25th, 2007 at 17:28 and is filed under web开发.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
09月 20th, 2007 at 23:31
一直拿DW当记事本用还没注意过有这样的功能 不错 看来以后要注意一些技巧了 [lol]
09月 21st, 2007 at 09:35
把DW作记事本用…..你强!
05月 19th, 2008 at 12:22
[...] 这个方法第一次是从5key那里得来的。这个方法在Firefox下是不会显示省略号的。具体的方式是: [...]
05月 19th, 2008 at 12:57
[...] 这个方法第一次是从5key那里得来的。这个方法在Firefox下是不会显示省略号的。具体的方式是: [...]
07月 5th, 2008 at 09:28
[...] 这个方法第一次是从5key那里得来的。这个方法在Firefox下是不会显示省略号的。具体的方式是: [...]
08月 24th, 2008 at 00:31
[...] 这个方法第一次是从5key那里得来的。这个方法在Firefox下是不会显示省略号的。具体的方式是: [...]
10月 26th, 2008 at 15:04
[...] 这个方法第一次是从5key那里得来的。这个方法在Firefox下是不会显示省略号的。具体的方式是: [...]