小程序拼团头像重叠效果

头像加了白色原边,主要用transform:translateX动态偏移实现

   .cdtouxiang {

      width: 100%;

      height: auto;

      position: relative;

      display: flex;

      flex-direction:columnl;

      justify-content: flex-start;

      padding:0 10rpx;

      box-sizing: border-box;

    }

    .cdtouxiang  image {

      display: inline-block;

      width: 60rpx;

      height: 60rpx;

      border-style: solid;

      font-weight: bold;

      border-width: 1rpx;

      border-color: white;

      border-radius: 50%;

    }

你可能感兴趣的:(小程序拼团头像重叠效果)