Flex layout

clipboard.png

the style of the above figure is as follows:

<view style="display:flex;justify-content:space-between;align-items:center;">
    <view style="display:flex;align-items:center;">  // viewflex
        <image></image>
        <image></image>
        <image></image>
        <image></image>
        <image></image>
        <image></image>
    </view>
    <view></view>
</view>
    <view style="display:flex;align-items:center;">
        <image></image>
        <image></image>
        <image></image>
        <image></image>
        <image></image>
        <image></image>
        <view></view>
    </view>
May.09,2021

according to your actual situation, the peripheral view needs to be given a width,. I use 100% by default.
and if you use flex to achieve the left and right layout on your structure, and the internal view does not seem to be able to change its style, then only insert a blank area between the left and right parts, the width of this area, the width of this area is set according to your needs.

  

this can be done without a flex layout, just a simple left and right layout. The avatar on the left flows normally, and the button on the right floats on the right

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b32ab7-e380.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b32ab7-e380.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?