我有一份拇指清单..。
<div class="projects-wrapper">
<ul>
<li class="project">...and创建了一个条件,以更改列表中每四个项目的边距:
.projects-wrapper .project:nth-child(4n+4){
margin-right: 0;
}现在我需要更改最后四项的页边距:
.projects-wrapper .project:nth-last-child(-n+4){
margin-bottom: 0;
}但这两个条件并不能协同工作。只是分开
发布于 2013-11-19 22:18:51
更改css选择器的顺序,使nth-last-child排在nth-child之前。
http://jsfiddle.net/fFKFD/2/
https://stackoverflow.com/questions/20073509
复制相似问题