css 移动设备上的自定义订单列

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 移动设备上的自定义订单列相关的知识,希望对你有一定的参考价值。

/*-----------------[Start Custom Column Order]----------------*/

@media all and (max-width: 980px) {

.custom_row {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
-webkit-flex-wrap: wrap; /* Safari 6.1+ */
flex-wrap: wrap;
}
 
.first-on-mobile {
-webkit-order: 1;
order: 1;
}
 
.second-on-mobile {
-webkit-order: 2;
order: 2;
}
 
.third-on-mobile {
-webkit-order: 3;
order: 3;
}
 
.fourth-on-mobile {
-webkit-order: 4;
order: 4;
}
/*** add margin to last column ***/
.custom_row:last-child .et_pb_column:last-child {
margin-bottom: 30px;
}}


/*-----------------[End Custom Column Order]----------------*/

以上是关于css 移动设备上的自定义订单列的主要内容,如果未能解决你的问题,请参考以下文章