📜  nth-of-type(2):before - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:55.593000             🧑  作者: Mango

代码示例1
p:nth-of-type(2) ==> Selects every 

element that is the second p element of its parent: Example Specify a background color for every

element that is the second p element of its parent: p:nth-of-type(2) { background: red; }