오늘도 좋은아침~!!!

개발/CSS

[CSS]nth(selector)

리히 2024. 10. 15. 16:46
반응형
div
 
 
 
 
 
  • div:nth-child(0)
  • div:nth-child(1)
  • div:nth-child(2)
  • div:nth-last-child(0)
  • div:nth-last-child(1)
  • div:nth-last-child(2)
  • div:nth-of-type(0)
  • div:nth-of-type(1)
  • div:nth-of-type(2)
  • div:nth-last-of-type(0)
  • div:nth-last-of-type(1)
  • div:nth-last-of-type(2)
  • nav:nth-child(0)
  • nav:nth-child(1)
  • nav:nth-child(2)
  • nav:nth-last-child(0)
  • nav:nth-last-child(1)
  • nav:nth-last-child(2)
  • nav:nth-of-type(0)
  • nav:nth-of-type(1)
  • nav:nth-of-type(2)
  • nav:nth-last-of-type(0)
  • nav:nth-last-of-type(1)
  • nav:nth-last-of-type(2)
  • div:nth-child(2n-1)
  • div:nth-child(2n)
  • div:nth-child(2n+1)
  • div:nth-last-child(2n-1)
  • div:nth-last-child(2n)
  • div:nth-last-child(2n+1)
  • div:nth-of-type(2n-1)
  • div:nth-of-type(2n)
  • div:nth-of-type(2n+1)
  • div:nth-last-of-type(2n-1)
  • div:nth-last-of-type(2n)
  • div:nth-last-of-type(2n+1)
  • nav:nth-child(2n-1)
  • nav:nth-child(2n)
  • nav:nth-child(2n+1)
  • nav:nth-last-child(2n-1)
  • nav:nth-last-child(2n)
  • nav:nth-last-child(2n+1)
  • nav:nth-of-type(2n-1)
  • nav:nth-of-type(2n)
  • nav:nth-of-type(2n+1)
  • nav:nth-last-of-type(2n-1)
  • nav:nth-last-of-type(2n)
  • nav:nth-last-of-type(2n+1)
728x90
반응형