CSS 屬性之 :before 和 :after 的簡單使用

:before 屬性和 :after 屬性的使用和普通的標籤元素一樣。 需要注意的是:通過 content 屬性進行文本插入,如果 content 內容爲空,需要添加 position: absolute;,不然無法顯示出效果
相關文章
相關標籤/搜索