在bootstrap5中文本截断器超出显示点文本溢出
2024-02-29 01:03212
将长文本截断并用省略号代替。
对于超长的内容,你可以通过添加 .text-truncate
类将文本截断并添加省略号。需要设置 display: inline-block
或 display: block
属性。
This text is quite long, and will be truncated once displayed.This text is quite long, and will be truncated once displayed.