::before 和 ::after 伪元素的用法

原文地址:https://www.cnblogs.com/starof/p/4459991.html   一、介绍 css3为了区分伪类和伪元素,伪元素采用双冒号写法。 常见伪类——:hover,:link,:active,:target,:not(),:focus。 常见伪元素——::first-letter,::first-line,::before,::after,::selection。
相关文章