반응형 :nth-last-of-type 가상 클래스1 [css3] :nth-last-of-type 가상 클래스 [css3] :nth-last-of-type 가상 클래스 :nth-last-of-type 가상 클래스는 :nth-of-type 와 한 가지만 빼고 동일 합니다. :nth-of-type() 가상 클래스 잠깐 복습해 보면 :nth-of-type은 같은 유형의 n번째 형제인 요소를 선택합니다. :nth-last-of-type(n)은 맨 마지막부터 순서를 계산합니다. n값은 다른 가상 클래스와 마찬가지로 정수, 키워드, 공식이 들어갑니다. 정수- 음수, 양수, 0 예> :nth-last-of-type(5) 맨 마지막부터 계산하여 5번째 형제만을 선택함. 키워드- even (짝수), odd(홀수) 예> :nth-last-of-type(even) 맨 마지막부터 계산하여 홀수 형제를 선택함. 공식-an+b a와 b .. 2014. 11. 14. 이전 1 다음 반응형