css style adjusts elements horizontally to the side

Adjust elements to the side (up, down, left, and right)

.list{
  margin-left: 20rpx;
  height: 110rpx;
  border-bottom: 1rpx solid #e2e2e3;
 
}
.list{
  margin-left: 20rpx;
  height: 110rpx;
  border-bottom: 1rpx solid #e2e2e3;
  display: flex;
  /*水平分布在两边*/
  justify-content: space-between;
}

display: flex;
/ horizontally distributed on both sides /
justify-content: space-between;
it will align the child elements to the edge and divide the remaining content evenly
 

Guess you like

Origin blog.csdn.net/m0_51660523/article/details/119743074