CSS:文字只显示一行,且超出部分省略号显示 overflow:hidden; white-space:nowrap; /*不允许换行*/ text-overflow:ellipsis;/*超出部分省略号显示*/