【发布时间】:2014-03-14 20:37:39
【问题描述】:
我的主页上列出了许多产品,我使用 nth-child 元素来定位最后 4 个以将底部边距减少到 0,但似乎不起作用,我以为它是 nth- child(5), nth-child(6) 等
直播网址(http://bit.ly/1gwfpNF)
这是一个sn-p
#layout #categories .box-1:nth-child(5) { margin-bottom: 0px; }
#layout #categories .box-1:nth-child(6) { margin-bottom: 0px; }
#layout #categories .box-1:nth-child(7) { margin-bottom: 0px; }
#layout #categories .box-1:nth-child(8) { margin-bottom: 0px; }
【问题讨论】:
标签: css