文字省略的效果 只需要三行的代码就可以实现这样的效果: overflow:hidden; text-overflow:ellipsis; white-space:nowrap; //在一行显示,直到遇到一个<br />