+
81
-

css中after与before有啥用处?

css
css中经常看见after与before,有啥用处?

网友回复

+
1
-
:before 和 :after 在 blockquote 元素之前和之后插入新内容,它使用content属性,也就是在内容上进行操作。 div :before{ content:“前面”; } div :after{ content:“后面”; }
我知道答案,我要回答