Add a space (“ ”) after an element using :after

后端 未结 5 2012
遥遥无期
遥遥无期 2020-12-12 09:41

I want to add a blank space after some content, however the content: \" \"; doesn\'t seem to work.

This is my code:

h2:after {
    conte         


        
5条回答
  •  佛祖请我去吃肉
    2020-12-12 10:23

    Turns out it needs to be specified via escaped unicode. This question is related and contains the answer.

    The solution:

    h2:after {
        content: "\00a0";
    }
    

提交回复
热议问题