当前位置:网站首页>[applet] realize the effect of double column commodities

[applet] realize the effect of double column commodities

2022-06-24 00:36:00 Honest Cao Cao

 wxml Code

<!-- ======  Commodity area  ====== -->

<view class="shopBox">

    <view class="proc" wx:for="{
   {8}}">
         goods 1
    </view>
</view>

wcss Code


.shopBox {
    height: 500px;
    width: 96%;
    background-color: rgb(203, 237, 250);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.proc {
    height: 200px;
    width: 48%;
    background-color: #fad2d2;
    margin-left: 5px;
    margin-bottom: 5px;
    text-align: center;
    line-height: 200px;
}

原网站

版权声明
本文为[Honest Cao Cao]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206232251375965.html