CSS: Can you prevent overflow: hidden from cutting-off the last line of text?

前端 未结 8 2117
余生分开走
余生分开走 2020-12-13 10:00

When using CSS overflow: hidden , I\'ve often found that the last line of text gets partially cut-off. Is there a way to prevent this so that any partial lines do not show

8条回答
  •  抹茶落季
    2020-12-13 10:48

    that worked for me:

    .wrapper_container{
        width: 300px;
        height: 200px;
        overflow: hidden;
    }
    
    .wrapper{
        -webkit-column-width: 300px;
        column-width: 300px;
        height: 100%;
    }
    

提交回复
热议问题