由於HTML這樣的:CSS選擇器:爲什麼`.classA + .classB:nth-type(3)`不工作?
<div class="h2 colors">Title: Colors</div>
<div class="pair">Hello world</div>
<div class="pair">Hello world</div>
<div class="pair">Hello world</div>
<div class="pair">Hello world</div>
和CSS等
.h2 + .pair:nth-of-type(2) { color: red; } /* works */
.h2 + .pair:nth-of-type(3) { color: green; } /* doesn't */
爲什麼類型(3)不工作?
參見Fiddle