nth-child1 nth-child와 nth-of-type의 차이점 CSS pseudo-class 중 nth-child와 nth-of-type가 있다. 코드를 살펴보자. span:nth-child(2n+1), without an inside the child elements. Children 1, 3, 5, and 7 are selected, as expected. This span is selected! This span is not. :( What about this? And this one? Another example Yet another example Aaaaand another span:nth-child(2n+1), with an inside the child elements. Children 1, 5, and 7 are selected. 3.. 2018. 4. 24. 이전 1 다음