
要使用 CSS 为作为其父级的第二个子级的每个
元素设置样式,请使用 CSS :nth-child(n) 选择器。
示例 h2>
您可以尝试运行以下代码来实现:nth-child(n)选择器
Live Demo
This is demo text 1.
立即学习“前端免费学习笔记(深入)”;
This is demo text 2.
This is demo text 3.
This is demo text 4.
This is demo text 5.
This is demo text 6.










