使用 :after 在元素后添加一个空格 (" ") - Add a space (" ") after an element using :after

问题:

I want to add a blank space after some content, however the content: " ";我想在一些内容后添加一个空格,但是content: " "; doesn't seem to work.似乎不起作用。

This is my code:这是我的代码:

h2:after {
    content: " ";
}

... which doesn't work, however this does: ...这不起作用,但是这样做:

h2:after {
    content: "-";
}

What am I doing wrong?我究竟做错了什么?


解决方案:

参考一: https://stackoom.com/question/MwNB
参考二: Add a space (" ") after an element using :after
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章