第407天 不用换行的标签,怎么伪元素实现换行的效果?
3+1官网
我也要出题
使用\A换行,并且指定white-space: pre保留换行效果
\A
white-space: pre
.foo::after { content: '123\A 456'; white-space: pre; }
Most helpful comment
使用
\A换行,并且指定white-space: pre保留换行效果