字符串过长?用CSS隐藏掉它。
text-flow-omit { width:200px; white-space:nowrap; word-break:keep-all; overflow:hidden; text-overflow:ellipsis; } 超过200px就用省略号隐藏掉,不错的啊,不用Javascript那么麻烦的处理了。
发布时间: 2013-10-21 17:02:52 作者: rapoo
字符串过长?用CSS隐藏掉它。
text-flow-omit { width:200px; white-space:nowrap; word-break:keep-all; overflow:hidden; text-overflow:ellipsis; }