How to line-break from css, without using
?

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

output:

hello
How are you

code:

hello
How are you

Ho

26条回答
  •  花落未央
    2020-11-22 16:18

    Impossible with the same HTML structure, you must have something to distinguish between Hello and How are you.

    I suggest using spans that you will then display as blocks (just like a

    actually).

    p span {
      display: block;
    }

    helloHow are you

提交回复
热议问题