CSS 属性之 :before 和 :after 的简单使用
:before 属性和 :after 属性的使用和普通的标签元素一样。
需要注意的是:通过 content 属性进行文本插入,如果 content 内容为空,需要添加 position: absolute;
,不然无法显示出效果
:before 属性和 :after 属性的使用和普通的标签元素一样。
需要注意的是:通过 content 属性进行文本插入,如果 content 内容为空,需要添加 position: absolute;
,不然无法显示出效果