CSS“内容”属性中的换行字符序列?

是否有可能在CSS content属性中使用换行符强制行? 就像是:

 figcaption:before { content: 'Figure \n' + attr(title); } 

content属性接受一个string,并且:

一个string不能直接包含换行符。 要在string中包含换行符,请在ISO-10646(U + 000A)中使用表示换行符的换行符,例如“\ A”或“\ 00000a”。 这个字符表示CSS中“新行”的一般概念。

(不知道实际的浏览器支持。)

 figcaption:before { content: 'Figure \a' attr(title); white-space: pre; } 

请注意,在content属性值中,连接仅由空白表示,而不是由“+”号表示。 CSSstring文字中的转义符号\a表示换行符。