How can I use :nth-child() to select every other <div> within ALL children?
问题 I'm working on a comments system, and I need to have every other child <div> (even children of the first children) be selected with CSS. For example, lets say I have this markup (omitting unneeded closing tags just for simplicity): <body> <div class="comment"> <div class="comment"/> <p class="something else"/> <div class="comment"> <div class="comment"/> <div class="comment"/> </div> </div> <div class="comment"/> <div class="comment"/> </body> How can I select every other <div> within the