让DIV,LI等元素超出部分文字用省略号…显示。
示例:
兼容IE/Firefox/Chrome
代码:
display:block;white-space:nowrap; overflow:hidden; text-overflow:ellipsis;