如何在CSS中选择此div? [英] How do I select this div in CSS?
本文介绍了如何在CSS中选择此div?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我被允许使用的唯一的类是 .servicebox
。
我试过了这个
The only class that I am allowed to use is .servicebox
.
I've tried this
.servicebox div> div> div:last-child {
padding:0;
}
,但它正在选择更多的div,而不是最后一个。
, but it is selecting more div, not the last one.
推荐答案
使用:第二个div上的最后一个
.servicebox div > div:last-child > div{
padding: 0;
}
这篇关于如何在CSS中选择此div?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文