如何在html中溢出时为文本添加三个点?

时间:2016-04-15 16:40:42

标签: html css

如何在这样的文字中显示三个点(...)? like this?

1 个答案:

答案 0 :(得分:39)

添加所有这些。 单线制作。

android {
   useLibrary 'org.apache.http.legacy'
}

要做多行,实际上你问过。

text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
width:100px; // some width

工作小提琴: https://jsfiddle.net/mishrarajesh/676jc7sa/

请注意,目前仅在网络工具包浏览器中支持此多行代码。