css3如何实现隔行换色呢?使用css3选择器 p:nth-of-type(odd)奇数 和 p:nth-of-type(even)偶数以下是部分实例: p:nth-of-type(odd) { background:#ff0000; } p:nth-of-type(even) { background:#0000ff; } This is a heading The first paragraph. The second paragraph. The third paragraph.