📜  nth-child - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:38.543000             🧑  作者: Mango

代码示例6
/* Selects the second 
  • element in a list */ li:nth-child(2) { color: lime; } /* Selects every fourth element among any group of siblings */ :nth-child(4n) { color: lime; }