当文字超出DIV宽度时,超出的文字部分省略,并用显示省略号代替,css代码如下:
div.ellipsis { padding-left: 5px; text-align: left; text-overflow:ellipsis; overflow: hidden; white-space: nowrap; }
重要前提是DIV为固定宽度。 <end>