模拟的设备变大后,button原本垂直居中的文字不再居中了

发布于 6 年前作者 dengxiulan16199 次浏览最后编辑 6 年前来自 ask

display flex,table都试过了,都没有作用  ,单位用的是rpx。有可能是什么原因啊?          

2 回复
zengguiying
zengguiying1 楼6 年前

你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

yangxiong
yangxiong2 楼4 年前

<button  type=“primary”  class=“btcc”>房源搜索</button>

.btcc{display: flex; height:50px; margin-left: 25rpx; margin-right: 25rpx; justify-content: center; align-items: center;}