[CSS] pseudo
의사 선택기 :첫 번째 자식 :막내 /*첫 div 배경색 tomato*/ div:first-child{ background-color: tomato; } /*마지막 div 배경색 teal*/ div:last-child{ background-color: teal; } :n-자식(숫자) :n번째 자식(짝수) :n번째 자식(홀수) /*2번째 span에만 배경색 적용*/ span:nth-child(2){ background-color: teal; } /*짝수 span에만 배경색 적용*/ span:nth-child(even){ background-color: teal; } 2. 스팬 짝수 스팬 범위를 찾고 효과를 적용하는 방법은 다음과 같습니다. 1) … Read more