What is the difference between :before and ::before?

后端 未结 5 1757
天命终不由人
天命终不由人 2020-12-02 17:52

I just saw a CSS code that included ::before tag. I looked at MDN to see what the ::before is but I really didn\'t understand it.

Can some

5条回答
  •  温柔的废话
    2020-12-02 18:30

    They essentially mean the same thing. The :: was introduced in CSS3 to help descriminate between pseudo elements (like :before and :after) and pseudo classes (like :link and :hover).

提交回复
热议问题