CSSで交互に背景設定 Mar 18, 2014 Tags: css, tips CSSで交互に背景設定。 「:nth-child(odd)」で奇数、「:nth-child(even)」で偶数。 td:nth-child(even) { background:#ccc; } td:nth-child(odd) { background:#ccc; }