给 `text` 加上一个 `display: inline-block` 样式,这样的话,文字截断就会根据 `text` 文字块来处理,而不是直接把原本是 **inline** 特性的 `text` 直接进行截断处理了。
阅读量:1
点赞量:0