用css定义长字符串的截断显示 原效果 我是一个很长很长很长的字符串 截取后 我是一个很长很长很长的字符串 8em; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;