css强制显示...

white-space: nowrap;text-overflow: ellipsis;overflow:hidden;width: 100%;

-----------------------上面那个好像不行了,用下面这个----------

    overflow: hidden!important;
    text-overflow: ellipsis!important;
    -webkit-line-clamp: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    white-space: normal;
    word-wrap: break-word;

你可能感兴趣的:(css)