div p:nth-of-type(3) { color: red; }
解释:div下的第三个p元素变红
div p:nth-child(3) { color: red; }
解释:div下的第三个元素正好为p时,这个p变红