justify-content对view下<input><button>不起作用
在<view>里设置了justify-content:space-around对<view>下面的<input><button>不起作用
<!--输入框--> < view class = "post-input-container" > < input type = "text" placeholder = "输入内容" class = "post-input" /> < button class = "post-send-btn" >发送</ button > </ view > |
.post-input-container { position : fixed ; bottom : 0 ; width : 100% ; height : 100 rpx; display : flex; flex- direction : row; justify- content : space-around; align-items: center ; background-color :chartreuse; } .post-input-container .post-input { width : 50% ; height : 80 rpx; background-color :beige; } .post-input-container .post-send-btn { width : 30% ; height : 80 rpx; background-color : bisque; } |