首页 > 技术文章 > css multi lines text & URL ? bug All In One

xgqfrms 2021-08-03 12:21 原文

css multi lines text & URL ? bug All In One

solution

word-break: break-all;

强制英文单词换行 ✅


    .ks-multi-lines-text {
        max-width: 748px;
        width: 748px;
        text-align: left;
        color: #323437;
        height: calc(32px * 4);
        line-height: 32px;
        // overflow-wrap: break-word;
        // word-wrap: break-word;
        word-break: break-all;
        // white-space: nowrap;
        margin-top: -10px;
    }

refs

https://css-tricks.com/multi-line-padded-text/

https://blog.csdn.net/suwu150/article/details/90708921


Flag Counter

©xgqfrms 2012-2020

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载

推荐阅读