.button_view { display: flex; flex-direction: row; justify-content: space-between; align-items: center; } .button_view { display: flex; flex-direction: row; justify-content: space-around; align-items: center; margin-top: 20px; } .button_view button { width: 45%; font-size: 28rpx; color: #fff; padding: 10rpx; } .button_view button:nth-child(1) { background-color: red; } .button_view button:nth-child(2) { background-color: green; }