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