Text overflow ellipsis not showing with some custom font

前端 未结 7 879
傲寒
傲寒 2021-01-17 09:08

I\'m currently trying to make a text box with hiding overflowing text. It works fine, but for some part. I\'m using

text-overflow: ellipsis;
<
7条回答
  •  轮回少年
    2021-01-17 09:44

    Make sure you have

    white-space: nowrap;
    overflow: hidden;
    

    with your

    text-overflow: ellipsis;
    

提交回复
热议问题