CSS:我如何选择最后一个不空的孩子(在我的情况下是<li>)?

时间:2016-04-22 10:56:55

标签: html css css-selectors

这不起作用

.users ul li:last-child:not(:empty) span.number { 
   text-indent: 20px; 
   background: url('../images/remove.png') center center no-repeat; 
}

它可以选择第一个孩子,但我不需要它。

.users ul li:first-child:not(:empty) span.number

Example of what I need

0 个答案:

没有答案