CSS before和after伪类

一、定义

专为一个标签之前之后插入标签的

二、详解

:before    p:before       在每个<p>元素之前插入内容     
 :after     p:after        在每个<p>元素之后插入内容     

例:p:before{content:"hello";color:red;display: block;}
原文地址:https://www.cnblogs.com/liuxiaowei/p/7660084.html