CSS css截取字符的两种方法站长资源全栈工程师阅读(1252)评论(0)方法一: <p style="width:300px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;"> 任意长度的字符串 </p> 方法二...