//3n就是3的倍数都加这个样式*/.list li:nth-child(3n){ border-bottom:1px;} 转载于:https://www.cnblogs.com/bubuchu/p/7085023.html