问一个关于html的问题

写的是个app,怎么才能让下面的全都变成横排,就是发货,收货评价那几个从竖列变成跟待付款一起横排,试过很多代码都实现不了,求解

img

display:flex

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .parent {
        display: flex;
        align-items: center; /*横向对齐*/
        justify-content: space-between; /*两端对齐*/
      }
      .box1 {
        width: 50px;
        height: 50px;
        background-color: red;
      }
    </style>
  </head>
  <body>
    <div class="parent">
      <div class="box1"></div>
      <div class="box1"></div>
      <div class="box1"></div>
      <div class="box1"></div>
    </div>
  </body>
</html>


img

flex 布局

display: flex;
align-items: center;
justify-content: space-around;

左悬浮?

这个使用flex布局即可,浮动和定位也可以实现,都是css可以控制的

flex布局 。 给这些 图标的父元素加上就行

1.子元素浮动,2.flex布局

display: flex;
align-items: center;
justify-content: space-around;