How can I show dots (“…”) in a span with hidden overflow?

后端 未结 8 1319

My CSS:

#content_right_head span
{
  display:inline-block;
  width:180px;
  overflow:hidden !important;
}

Now it\'s showi

8条回答
  •  渐次进展
    2020-12-02 04:45

    You can try this:

    .classname{
        width:250px;
        overflow:hidden;
        text-overflow:ellipsis;
    }

提交回复
热议问题