markdown 伪类和伪元素选择器之间的区别

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 伪类和伪元素选择器之间的区别相关的知识,希望对你有一定的参考价值。

# pseudo-class
`p:first-child` behaves as if you added a class to the first p element, these are known as pseudo-class selectors. 
 
# pseudo-element
pseudo-element selectors act as if an element was dynamically inserted, for example `::first-line` acts in a similar way to you wrapping a span around the first line of text.

https://www.smashingmagazine.com/2019/01/how-to-learn-css/

以上是关于markdown 伪类和伪元素选择器之间的区别的主要内容,如果未能解决你的问题,请参考以下文章

伪类和伪元素的区别

浅谈css伪类和伪元素的区别、优先级

总结伪类和伪元素的区别

HTML中常见伪类和伪元素的区别

伪类选择器与伪元素选择器的区别

伪类和伪元素的区别