How to line-break from css, without using
?

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

output:

hello
How are you

code:

hello
How are you

Ho

26条回答
  •  一整个雨季
    2020-11-22 16:27

    The "\a" command in CSS generates a carriage return. This is CSS, not HTML, so it shall be closer to what you want: no extra markup.

    In a blockquote, the example below displays both the title and the source link and separate the two with a carriage return ("\a"):

    blockquote[title][cite]:after {
        content:attr(title)"\a"attr(cite)
    }
    

提交回复
热议问题