.img-lists .sz_list li { float: left; width: 16%; margin-top: 35px; margin-left: 5%; transition: all 0.3s; position: relative; top: 0;} .img-lists .sz_list li a .pic { padding-top: 134%;} .img-lists .sz_list li a > div.info p { text-align: center;} .img-lists ul li:nth-child(3n+1) { margin-left: 5%;} .img-lists ul li:nth-child(5n+1) { margin-left: 0;} @media screen and (max-width: 1024px) { .img-lists .sz_list li { width: 46%; margin-left: 8%; margin-top: 20px;} .img-lists ul li:nth-child(3n+1) { margin-left: 8%;} .img-lists ul li:nth-child(5n+1) { margin-left: 8%;} .img-lists ul li:nth-child(2n+1) { margin-left: 0;} }