可用三行代码将多余文字隐藏,但又让人知道后面还有文字的效果。
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
如下图红色框内:

效果图如下红色框内:

可用三行代码将多余文字隐藏,但又让人知道后面还有文字的效果。
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
如下图红色框内:
效果图如下红色框内:
本文标题:将多余的文字隐藏,并提示...来表示后面还有文字
本文链接:https://www.haomeiwen.com/subject/buefqktx.html
网友评论