li{
width: 18.7%;
margin-right: 1.33%;
padding: 20px 20px 20px;
border-radius: 15px;
margin-bottom: 20px;
position: relative;
transition: all 0.3s;
background-color:#fff;
@media screen and (max-width: 1200px){
width: 32%;
margin-right: 2%;
&:nth-child(4n){
margin-right: 2%;
}
&:nth-child(3n) {
margin-right:0;
}
}
&:nth-child(5n){
margin-right: 0;
}
相关文章
- 02-21CSS3自适应布局之视口高度
- 02-21编写Python程序,通过python控制台输入一个大于1的整数n,然后产生一个二维列表。二维列表的尺寸是n*n.每一个列表元素的值从1到n*n,依次排列,例如:输入的整数是3,会产生如下二维列表【【
- 02-21css-base-圆角控制文本小技巧
- 02-21css布局:多列等高布局
- 02-21自定义布局实现TextView控制行数显示并显示全部按钮
- 02-2102-遇到的问题Vue控制多个下拉列表和问题duplicate attribute: @click
- 02-21CSS控制文字,超出部分显示省略号
- 02-21CSS控制文字,超出部分显示省略号
- 02-21vue中这样控制css样式更slay
- 02-21Bootstrap的常用类(CSS和布局组件)的总结