首页 › 答案 › 题库 › 博览群书

下列选项中,能够从其父元素中选中第2个子元素p,正确写法是()。

下列选项中,能够从其父元素中选中第2个子元素p,正确写法是()。
A、p:nth-last-child(2)
B、p:nth-child(2)
C、p:nth-of-type(2)
D、p:first-child
正确答案:B