How to line-break from css, without using
?

后端 未结 26 1652
攒了一身酷
攒了一身酷 2020-11-22 15:49

output:

hello
How are you

code:

hello
How are you

Ho

26条回答
  •  情书的邮戳
    2020-11-22 16:29

    Here's a bad solution to a bad question, but one that literally meets the brief:

    p {
        width : 12ex;
    }
    
    p:before {
        content: ".";
        float: right;
        padding-left: 6ex;
        visibility: hidden;
    }
    

提交回复
热议问题