当前位置:网站首页>[wechat applet -- solve the alignment problem of the last line of display:flex. (discontinuous arrangement will be divided into two sides)]
[wechat applet -- solve the alignment problem of the last line of display:flex. (discontinuous arrangement will be divided into two sides)]
2022-07-29 04:55:00 【Chang'an CC】
Wechat applet – solve display:flex Last line alignment problem .( The discontinuous arrangement will be divided into two sides )
Before the change

<view class="addr-box">
<view wx:for="{
{socketTypeData.val}}" wx:key="index" class="addr-item {
{index==socketTypeData.itemIndex?'selectedItem':''}}" data-dialogid="{
{index}}" catchtap="getValueTapSocketTypeData">{
{item}}</view>
</view>
.addr-box {
height: auto;
box-sizing: border-box;
padding: 16rpx;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
}
.addr-item {
width: 30%;
height: 64rpx;
line-height: 64rpx;
text-align: center;
background: #F4F6F5;
border: 1px solid #F4F6F5;
opacity: 1;
border-radius: 32rpx;
font-size: 28rpx;
font-family: PingFang SC;
font-weight: 400;
color: #151521;
opacity: 1;
box-sizing: border-box;
margin-bottom: 24rpx;
}
After modification

/* Solve the problem that the last row is arranged separately */
.addr-box:after {
content: "";
width: 30%;// And the width time above
}
边栏推荐
- Word如何查看文档修改痕迹?Word查看文档修改痕迹的方法
- spinning up安装完使用教程测试是否成功,出现Library“GLU“ not found和‘from pyglet.gl import *错误解决办法
- ThreadPoolExecutor simple to use
- Use openmap and ArcGIS to draw maps and transportation networks of any region, and convert OMS data into SHP format
- MySQL time calculation function
- Opencv environment construction
- Excel怎么筛选出自己想要的内容?excel表格筛选内容教程
- Use more flexible and convenient Rogowski coil
- How to set row height and column width in excel? The method of setting row height and column width in Excel
- 输入的查询SQL语句,是如何执行的?
猜你喜欢

Big silent event Google browser has no title

安装spinning up教程里与mujoco对应的gym,报错mjpro150

让你的正则表达式可读性提高一百倍

How to set row height and column width in excel? The method of setting row height and column width in Excel

ssm整合增删改查

Ethernet of network

使用近场探头和电流探头进行EMI干扰排查
![[untitled]](/img/6c/df2ebb3e39d1e47b8dd74cfdddbb06.gif)
[untitled]

Climbing the pit of traffic flow prediction (II): the simplest LSTM predicts traffic flow using tensorflow2

How to avoid damage of oscilloscope current probe
随机推荐
Correct user dragging method
Common current limiting methods
Recommendation system of online education
Climbing the pit of traffic flow prediction (III): using pytorch to realize LSTM to predict traffic flow
在线教育的推荐系统
Recyclerview switches the focus up and down through the dpad key. When switching to the control outside the interface, the focus will jump left and right
Common rules of makefile (make) (II)
Take you to understand JS array
Go面向并发的内存模型
def fasterrcnn_resnet50_fpn()实例测试
MySQL time calculation function
PHP determines whether the user has logged in. If logged in, the home page will be displayed. If not, enter the login page or registration page
Implementation of img responsive pictures (including the usage of srcset attribute and sizes attribute, and detailed explanation of device pixel ratio)
Reveal installation configuration debugging
C language implementation of three chess
img 响应式图片的实现(含srcset属性、sizes属性的使用方法,设备像素比详解)
IOS interview preparation - Objective-C
Makefile+make Basics
Excel怎么筛选出自己想要的内容?excel表格筛选内容教程
2022杭电多校联赛第四场 题解