nth-child 2023-06-11 本文已影响0人 xueyueshuai 规定属于其父元素的第二个子元素的每个 p 的背景色: p:nth-child(2) { background:#ff0000; }