摘要: 通常我们会使用固定宽度来截断文本并显示 ...,样式通常写法如下: .ellipsis { width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } 但在 flex 布局中,当设置了 flex: 1 阅读全文
posted @ 2021-06-16 11:39 尹宇星_Kim 阅读(618) 评论(0) 推荐(0) 编辑