CSS的僞元素::after和::before

::after和::before使用方法 1. 在元素內容前後加上指定內容 p::before{ content: 'Sally'; color: pink; } p::after{ content: 'I am Lily'; color: red; } <p>你好</p> 示例效果: 2. ::after 清除浮動 這裏不詳細介紹了,我的另一篇文章理解CSS浮動floa
相關文章