프로그램 공부 로그/HTML
CSS 변수 사용
HyoungJunYoon
2020. 12. 11. 17:59
1) root에 선언해서 사용한다.
ex) :root { }
2) `--`를 사용해서 변수 선언
ex) --a:10px;
3) 사용시
ex) var(--a);