CSS选择:nth-child(1)不起作用



所以我试图在最近的促销中制作第一个宽盒子(在底部)的高度比其余的盒子都要大,但是第nth的孩子不起作用,我只需要第一个宽的盒子即可。这是代码:

#listify_widget_recent_listings-2 .job_listing-entry-header:nth-child(1) {
height: 400px !important;
}

删除:nth-th-phild the of the of the the the the the the the of the the the the小部件中的所有盒子都会按预期更大,因此我不确定为什么它不适用于第一个。帮助!

请尝试此

#listify_widget_recent_listings-2 .job_listings li:nth-child(1) .job_listing-entry-header.listing-cover.has-image {
    height: 400px !important;
}

评论如果我错过了什么

最新更新