【发布时间】:2022-08-11 19:13:12
【问题描述】:
我有这个嵌套的 html
<div class=\"x\">
<div>.....</div>
<div> The One i want to change it\'s style</div>
</div>
我想访问第二个兄弟姐妹,其父级是类 \"x\" 的 div
我尝试使用
.x div:nth-child(2) {
padding-bottom: 30px;
margin-bottom: 30px;
}
但没有工作