控件(按钮)横向排列 wxss
.view_class {
display: flex;
flex-direction: row;
justify-content: center;
}
控件(按钮)纵向排列 wxss
.view_class {
flex-direction: column;
justify-content: center;
}
效果图:(wxml是一个view内嵌 3个button组件)
2022-10-13 11:52:50
.view_class {
display: flex;
flex-direction: row;
justify-content: center;
}
.view_class {
flex-direction: column;
justify-content: center;
}
效果图:(wxml是一个view内嵌 3个button组件)