使用 :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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章