Les nouveaux sélecteurs (suite)
div :nth-child(3) { background: red; }
div :nth-child(3n+1) { background: red; }div :nth-last-child(3) { background: red; }div img:nth-of-type(3) { background: green; }div :only-child { background: blue; }div img:first-of-type { background: red; }div img:last-of-type { background: green; }div p:only-of-type { background: yellow; }Last updated