CSS :before, :after 콜론 차이 및 사용법

2019. 11. 15. 23:43JavaScript

728x90

참고자료: https://helperbyte.com/questions/142754/what-is-the-difference-between-before-and-before-with-two-colons

https://www.w3schools.com/cssref/sel_before.asp

 

 

Q. 콜론 1개, 2개 차이?

A. 간단히 말하면 CSS1, CSS2에서는 1콜론. 그 이후 버전에서는 2콜론. 보다 자세한 내용은 링크 참조.

 

Q. CSS before, after 사용법?

A. 

The ::before selector inserts something before the content of each selected element(s).

Use the ::after selector to insert something after the content.

 

 

 

728x90
반응형