以小程序为例

<view class="xiantiao">
    <view class="city"></view>
    <view class="city"></view>
    <view class="city"></view>
    <view class="city"></view>
    <view class="city"></view>
    <view class="city"></view>
    <view class="city"></view>
    <view class="city" style="margin-right:0px;"></view>
</view>
.city:nth-child(odd) {
    width:60rpx;
    height:10rpx;
    margin-right: 23px;
    background-color: #0076FF;
    color: #333;
    transform: skew(-45deg);
    float:left;
}
.city:nth-child(even) {
    width:60rpx;
    height:10rpx;
    margin-right: 23px;
    background-color: #FF9E57;
    color: #333;
    transform: skew(-45deg);
    float:left;
}  

 

效果图

收货地址下边的平行四边形彩色线条

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
猜你喜欢
  • 2021-12-16
  • 2021-12-28
  • 2022-12-23
  • 2021-05-04
  • 2022-01-09
  • 2022-12-23
相关资源
相似解决方案