CSS超出部分显示省略号…代码

让DIV,LI等元素超出部分文字用省略号…显示。

示例:

兼容IE/Firefox/Chrome

代码:

display:block;white-space:nowrap; overflow:hidden; text-overflow:ellipsis;

原文地址:https://www.cnblogs.com/mm2015/p/5566973.html